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.001852/0.001852, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002112/0.002112, allocations: 189.9 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.435/1.435, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001496/0.001496, allocations: 47.92 kB / 370.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.257, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002804/0.2598, allocations: 1.571 MB / 424.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.2619, allocations: 0.8693 MB / 425.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.135e-05/0.2619, allocations: 0 / 425.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.262, allocations: 11.88 kB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.2621, allocations: 27.78 kB / 425.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.2625, allocations: 55.88 kB / 425.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.2627, allocations: 155.7 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.2628, allocations: 25.58 kB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007875/0.2636, allocations: 0.6395 MB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.2638, allocations: 83.69 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.625e-05/0.2639, allocations: 12 kB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.701e-05/0.2639, allocations: 8 kB / 426.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.264, allocations: 79.62 kB / 426.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.2642, allocations: 127 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005202/0.2647, allocations: 466.5 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.2647, allocations: 0 / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2647, allocations: 0 / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2647, allocations: 0 / 426.7 MB, free: 10.48 MB / 334.1 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.0009932/0.2657, allocations: 0.7579 MB / 427.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.2657, allocations: 8.031 kB / 427.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.635e-05/0.2658, allocations: 42.75 kB / 427.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.13e-05/0.2659, allocations: 44.66 kB / 427.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.2662, allocations: 236.7 kB / 427.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.2662, allocations: 12.31 kB / 427.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.2663, allocations: 8.375 kB / 427.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003452/0.2666, allocations: 169.7 kB / 428 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2666, allocations: 4 kB / 428 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.2666, allocations: 4 kB / 428 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2667, allocations: 4 kB / 428 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.2668, allocations: 83.89 kB / 428.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007843/0.2676, allocations: 479.5 kB / 428.6 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.2678, allocations: 102.5 kB / 428.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.268, allocations: 88.88 kB / 428.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.268, allocations: 0 / 428.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000449/0.2685, allocations: 241.8 kB / 429 MB, free: 8.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.2685, allocations: 0 / 429 MB, free: 8.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001016/0.2695, allocations: 0.6188 MB / 429.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.2696, allocations: 199.9 kB / 429.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007906/0.2704, allocations: 0.5601 MB / 430.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.2704, allocations: 37.7 kB / 430.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.665e-05/0.2705, allocations: 113.1 kB / 430.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.2706, allocations: 27.81 kB / 430.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.2707, allocations: 93.53 kB / 430.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2708, allocations: 334.9 kB / 431 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.271, allocations: 83.89 kB / 431 MB, free: 5.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.2712, allocations: 109.2 kB / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004326/0.2716, allocations: 438.6 kB / 431.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2716, allocations: 0 / 431.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007054/0.2723, allocations: 0.5018 MB / 432.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.2724, allocations: 152.5 kB / 432.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2724, allocations: 0 / 432.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.2725, allocations: 0 / 432.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.235e-05/0.2725, allocations: 4 kB / 432.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.2725, allocations: 0 / 432.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.2726, allocations: 11.98 kB / 432.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.2727, allocations: 109.2 kB / 432.4 MB, free: 4.43 MB / 334.1 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.0003903/0.2731, allocations: 400 kB / 432.7 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.224e-05/0.2732, allocations: 43.72 kB / 432.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.2733, allocations: 71.41 kB / 432.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2733, allocations: 0 / 432.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2733, allocations: 0 / 432.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.2733, allocations: 4 kB / 432.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.2745, allocations: 0.9389 MB / 433.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2745, allocations: 4 kB / 433.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.917e-06/0.2745, allocations: 0 / 433.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2745, allocations: 0 / 433.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.571e-05/0.2745, allocations: 19.98 kB / 433.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.2745, allocations: 8.062 kB / 433.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2745, allocations: 4 kB / 433.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008468/0.2754, allocations: 0.6714 MB / 434.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004097/0.2758, allocations: 213.4 kB / 434.7 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.472e-05/0.2759, allocations: 15.98 kB / 434.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.276, allocations: 15.94 kB / 434.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.2762, allocations: 51.94 kB / 434.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.2763, allocations: 97.23 kB / 434.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005148/0.2768, allocations: 422.8 kB / 435.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2768, allocations: 0 / 435.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.2771, allocations: 52 kB / 435.4 MB, free: 1.27 MB / 334.1 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.00121/0.2784, allocations: 1.218 MB / 436.6 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006206/0.279, allocations: 484.9 kB / 437 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.279, allocations: 0 / 437 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004133/0.2794, allocations: 381 kB / 437.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008409/0.2802, allocations: 202.4 kB / 437.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004177/0.2844, allocations: 3.223 MB / 440.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.2849, allocations: 0.8143 MB / 441.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.36e-05/0.285, allocations: 24.92 kB / 441.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.618e-05/0.2851, allocations: 43.36 kB / 441.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of SimCode: time 1.051e-06/0.2851, allocations: 0 / 441.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0373/0.3224, allocations: 9.418 MB / 451.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.25, allocations: 3.281 kB / 451.1 MB, free: 1.176 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/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: 13.748732905001816]