Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008545/0.0008545, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008751/0.0008751, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8954/0.8954, allocations: 173.4 MB / 200.5 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.049e-05/2.206e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002045/0.002068, allocations: 1.502 MB / 319.9 MB, free: 4.84 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.003633, allocations: 0.8147 MB / 320.7 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.279e-05/0.003716, allocations: 0 / 320.7 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.003839, allocations: 15.86 kB / 320.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.003944, allocations: 23.84 kB / 320.8 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003605/0.004305, allocations: 59.83 kB / 320.8 MB, free: 3.922 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.00456, allocations: 171.5 kB / 321 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.004693, allocations: 17.58 kB / 321 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005323/0.005225, allocations: 0.6667 MB / 321.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.005359, allocations: 71.8 kB / 321.8 MB, free: 2.992 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.005397, allocations: 12 kB / 321.8 MB, free: 2.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.984e-05/0.005426, allocations: 12 kB / 321.8 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.739e-05/0.005504, allocations: 71.72 kB / 321.9 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.962e-05/0.005593, allocations: 67.67 kB / 321.9 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003271/0.005921, allocations: 454.5 kB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.005923, allocations: 0 / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.005924, allocations: 0 / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.00593, allocations: 8 kB / 322.4 MB, free: 2.379 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008022/0.006733, allocations: 0.7456 MB / 323.1 MB, free: 1.574 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.006787, allocations: 12.92 kB / 323.1 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.125e-05/0.006838, allocations: 42.73 kB / 323.2 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.443e-05/0.006913, allocations: 44.66 kB / 323.2 MB, free: 1.469 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.007188, allocations: 240 kB / 323.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.007212, allocations: 8.375 kB / 323.5 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.007237, allocations: 8.375 kB / 323.5 MB, free: 1.191 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004006/0.007637, allocations: 314.6 kB / 323.8 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.007648, allocations: 192 / 323.8 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.007673, allocations: 12.12 kB / 323.8 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.00768, allocations: 4 kB / 323.8 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.007865, allocations: 236.4 kB / 324 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/0.008466, allocations: 459.6 kB / 324.5 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.00872, allocations: 251 kB / 324.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.008882, allocations: 229.4 kB / 324.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.008894, allocations: 3.984 kB / 324.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.009257, allocations: 391.2 kB / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.009258, allocations: 0 / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007993/0.01006, allocations: 0.9272 MB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/0.01014, allocations: 191.9 kB / 326.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005116/0.01065, allocations: 0.564 MB / 327 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.01068, allocations: 29.7 kB / 327 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.01074, allocations: 113.1 kB / 327.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.01078, allocations: 35.78 kB / 327.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.523e-05/0.01087, allocations: 97.55 kB / 327.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.01097, allocations: 330.8 kB / 327.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.01112, allocations: 228.5 kB / 327.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.01128, allocations: 257.6 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.01156, allocations: 446.7 kB / 328.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.01157, allocations: 0 / 328.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004929/0.01206, allocations: 0.6625 MB / 329.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.791e-05/0.01214, allocations: 156.5 kB / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.01214, allocations: 4 kB / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.01216, allocations: 0 / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.96e-05/0.01218, allocations: 0 / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.01218, allocations: 112 / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.01229, allocations: 15.94 kB / 329.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-05/0.01237, allocations: 97.48 kB / 329.4 MB, free: 10.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002681/0.01264, allocations: 408.3 kB / 329.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.105e-05/0.01268, allocations: 43.72 kB / 329.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.379e-05/0.01276, allocations: 71.41 kB / 330 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.01276, allocations: 3.984 kB / 330 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.01277, allocations: 4.062 kB / 330 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.01277, allocations: 4 kB / 330 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008029/0.01357, allocations: 1.064 MB / 331 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01357, allocations: 0 / 331 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-06/0.01358, allocations: 7.938 kB / 331 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.01358, allocations: 4 kB / 331 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.01361, allocations: 27.97 kB / 331.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.01361, allocations: 0 / 331.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.01361, allocations: 0 / 331.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005565/0.01417, allocations: 0.8281 MB / 331.9 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002563/0.01443, allocations: 221.3 kB / 332.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.01447, allocations: 12 kB / 332.1 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.085e-05/0.01456, allocations: 15.98 kB / 332.1 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.01467, allocations: 55.94 kB / 332.2 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-05/0.01473, allocations: 97.42 kB / 332.3 MB, free: 7.496 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003258/0.01506, allocations: 422.8 kB / 332.7 MB, free: 7.086 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01506, allocations: 4 kB / 332.7 MB, free: 7.082 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.01529, allocations: 56 kB / 332.8 MB, free: 7.027 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008297/0.01612, allocations: 1.369 MB / 334.1 MB, free: 5.574 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005913/0.01671, allocations: 0.7636 MB / 334.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.01671, allocations: 0 / 334.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003173/0.01703, allocations: 0.5287 MB / 335.4 MB, free: 4.066 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005887/0.01762, allocations: 193.8 kB / 335.6 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/0.02104, allocations: 3.983 MB / 339.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.02123, allocations: 215.8 kB / 339.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.691e-05/0.02131, allocations: 16.91 kB / 339.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.038e-05/0.02137, allocations: 44.48 kB / 339.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of SimCode: time 1.443e-06/0.02137, allocations: 0 / 339.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02529/0.04666, allocations: 10.56 MB / 350.4 MB, free: 4.805 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.168/7.215, allocations: 10.92 kB / 350.4 MB, free: 4.797 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00299162 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Mux2x1.out in file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv. Warning: Get data of variable Mux2x1.out from file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.046517862007022]