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.001324/0.001324, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001497/0.001497, allocations: 194.8 kB / 23.71 MB, free: 4.406 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.38/1.38, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.001656/0.001656, allocations: 43.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2602, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002805/0.263, allocations: 1.517 MB / 424.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.2649, allocations: 0.8148 MB / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.585e-05/0.265, allocations: 4 kB / 424.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.988e-05/0.2651, allocations: 11.86 kB / 424.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.389e-05/0.2652, allocations: 23.8 kB / 424.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.2654, allocations: 55.88 kB / 425 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002204/0.2657, allocations: 159.7 kB / 425.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.626e-05/0.2658, allocations: 25.56 kB / 425.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006851/0.2664, allocations: 0.6434 MB / 425.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.2666, allocations: 75.62 kB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.2666, allocations: 12 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.439e-05/0.2667, allocations: 12 kB / 425.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.332e-05/0.2668, allocations: 75.7 kB / 426 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2669, allocations: 99.2 kB / 426.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004614/0.2674, allocations: 463.7 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.2674, allocations: 0 / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2674, allocations: 4 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.2674, allocations: 0 / 426.5 MB, free: 10.41 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.0008435/0.2682, allocations: 0.7502 MB / 427.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2683, allocations: 8.031 kB / 427.3 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.505e-05/0.2683, allocations: 38.73 kB / 427.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.682e-05/0.2684, allocations: 52.66 kB / 427.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.2687, allocations: 232.8 kB / 427.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.2687, allocations: 4.375 kB / 427.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.093e-05/0.2688, allocations: 8.375 kB / 427.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.2692, allocations: 318.1 kB / 427.9 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-06/0.2692, allocations: 0 / 427.9 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.2692, allocations: 4 kB / 427.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.2692, allocations: 4 kB / 428 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.2695, allocations: 232.5 kB / 428.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007733/0.2703, allocations: 471.5 kB / 428.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000302/0.2706, allocations: 243 kB / 428.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.2708, allocations: 233.4 kB / 429.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.2708, allocations: 0 / 429.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000488/0.2713, allocations: 391.1 kB / 429.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.2713, allocations: 0 / 429.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001171/0.2725, allocations: 0.9111 MB / 430.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.2726, allocations: 199.9 kB / 430.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007122/0.2733, allocations: 0.564 MB / 431.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.2734, allocations: 33.64 kB / 431.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.8e-05/0.2735, allocations: 117.1 kB / 431.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.2735, allocations: 35.72 kB / 431.3 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.2736, allocations: 93.55 kB / 431.4 MB, free: 5.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.2738, allocations: 338.8 kB / 431.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002541/0.2741, allocations: 224.5 kB / 432 MB, free: 4.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.2743, allocations: 246.3 kB / 432.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004619/0.2748, allocations: 442.6 kB / 432.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2748, allocations: 4 kB / 432.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008251/0.2756, allocations: 0.6507 MB / 433.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.2757, allocations: 156.5 kB / 433.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2757, allocations: 0 / 433.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2758, allocations: 0 / 433.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.77e-05/0.2758, allocations: 0 / 433.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.2758, allocations: 4 kB / 433.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.2759, allocations: 11.98 kB / 433.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.276, allocations: 109.1 kB / 433.6 MB, free: 2.625 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.0004106/0.2764, allocations: 404 kB / 434 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.2765, allocations: 47.72 kB / 434 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.2766, allocations: 75.39 kB / 434.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2766, allocations: 0 / 434.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2766, allocations: 0 / 434.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2766, allocations: 0 / 434.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.2779, allocations: 1.057 MB / 435.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2779, allocations: 0 / 435.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.917e-06/0.2779, allocations: 0 / 435.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2779, allocations: 0 / 435.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.278, allocations: 23.92 kB / 435.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.278, allocations: 8.062 kB / 435.2 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/0.278, allocations: 4 kB / 435.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009359/0.2789, allocations: 0.8127 MB / 436 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/0.2793, allocations: 209.4 kB / 436.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.309e-05/0.2794, allocations: 12 kB / 436.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.2795, allocations: 15.92 kB / 436.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.2797, allocations: 55.94 kB / 436.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.2798, allocations: 101.2 kB / 436.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005257/0.2803, allocations: 418.8 kB / 436.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2803, allocations: 0 / 436.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.2806, allocations: 55.95 kB / 436.9 MB, free: 15.14 MB / 350.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.001324/0.2819, allocations: 1.365 MB / 438.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007979/0.2827, allocations: 0.7791 MB / 439 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2827, allocations: 0 / 439 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004822/0.2832, allocations: 0.521 MB / 439.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007948/0.284, allocations: 193.7 kB / 439.7 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004592/0.2886, allocations: 3.971 MB / 443.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.2889, allocations: 223.4 kB / 443.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.347e-05/0.2889, allocations: 8.969 kB / 443.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.656e-05/0.289, allocations: 47.42 kB / 443.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.289, allocations: 0 / 443.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03792/0.3269, allocations: 10.48 MB / 454.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.43, allocations: 10.06 kB / 454.4 MB, free: 13.03 MB / 366.1 MB " [Timeout remaining time 648] (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.892798433080316]