Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008512/0.0008512, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008175/0.0008175, allocations: 170.3 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9258/0.9258, allocations: 158.6 MB / 185 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1289/0.1289, allocations: 32.36 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 406.8 MB, free: 2.242 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429e-05/1.543e-05, allocations: 2.281 kB / 406.8 MB, free: 2.238 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001893/0.001908, allocations: 1.529 MB / 408.4 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001278/0.002036, allocations: 47.83 kB / 408.4 MB, free: 0.6562 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.826e-05/0.002094, allocations: 7.938 kB / 408.4 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.002247, allocations: 23.78 kB / 408.4 MB, free: 0.625 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.733e-05/0.002265, allocations: 3.938 kB / 408.4 MB, free: 0.6211 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001042/0.002369, allocations: 23.97 kB / 408.5 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.565e-05/0.002465, allocations: 71.81 kB / 408.5 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.002661, allocations: 79.62 kB / 408.6 MB, free: 452 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.334e-05/0.002715, allocations: 55.88 kB / 408.7 MB, free: 396 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.918e-05/0.002764, allocations: 35.88 kB / 408.7 MB, free: 360 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.002789, allocations: 8 kB / 408.7 MB, free: 352 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.223e-05/0.002802, allocations: 8 kB / 408.7 MB, free: 344 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.288e-05/0.002864, allocations: 67.81 kB / 408.8 MB, free: 276 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.444e-05/0.002909, allocations: 39.91 kB / 408.8 MB, free: 236 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.00305, allocations: 147.4 kB / 409 MB, free: 88 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.003052, allocations: 4 kB / 409 MB, free: 84 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.003053, allocations: 0 / 409 MB, free: 84 kB / 378.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.003057, allocations: 4 kB / 409 MB, free: 80 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0003867/0.003444, allocations: 366 kB / 409.3 MB, free: 15.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.003488, allocations: 12.03 kB / 409.3 MB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.164e-05/0.003569, allocations: 71.16 kB / 409.4 MB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.003601, allocations: 24.8 kB / 409.4 MB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.003758, allocations: 145.6 kB / 409.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.003773, allocations: 20.88 kB / 409.6 MB, free: 15.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.003793, allocations: 20.38 kB / 409.6 MB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.004045, allocations: 204.6 kB / 409.8 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.004053, allocations: 4.188 kB / 409.8 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.004067, allocations: 16.31 kB / 409.8 MB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.004075, allocations: 7.938 kB / 409.8 MB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.004227, allocations: 129.9 kB / 410 MB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004699/0.004697, allocations: 459.3 kB / 410.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.902e-05/0.004766, allocations: 42.5 kB / 410.5 MB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.92e-05/0.004805, allocations: 28.97 kB / 410.5 MB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.004816, allocations: 4 kB / 410.5 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.004836, allocations: 34.5 kB / 410.5 MB, free: 14.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.004837, allocations: 0 / 410.5 MB, free: 14.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001696/0.005006, allocations: 81.61 kB / 410.6 MB, free: 14.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.005035, allocations: 51.41 kB / 410.7 MB, free: 14.24 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.63e-05/0.005091, allocations: 109.8 kB / 410.8 MB, free: 14.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.327e-06/0.005101, allocations: 25.7 kB / 410.8 MB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.551e-05/0.005156, allocations: 140.1 kB / 410.9 MB, free: 13.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.005174, allocations: 31.78 kB / 411 MB, free: 13.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.005198, allocations: 13.72 kB / 411 MB, free: 13.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.511e-05/0.005273, allocations: 314.8 kB / 411.3 MB, free: 13.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.241e-05/0.005296, allocations: 11.98 kB / 411.3 MB, free: 13.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.957e-05/0.005315, allocations: 15.94 kB / 411.3 MB, free: 13.56 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.328e-05/0.005359, allocations: 32.84 kB / 411.3 MB, free: 13.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.005361, allocations: 3.938 kB / 411.3 MB, free: 13.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.778e-05/0.005429, allocations: 61.67 kB / 411.4 MB, free: 13.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.005442, allocations: 12 kB / 411.4 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.005447, allocations: 0 / 411.4 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.005457, allocations: 0 / 411.4 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.725e-05/0.005514, allocations: 8 kB / 411.4 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.005519, allocations: 0 / 411.4 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.405e-05/0.005533, allocations: 7.984 kB / 411.4 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.005538, allocations: 0 / 411.4 MB, free: 13.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 7.659e-05/0.005615, allocations: 137.7 kB / 411.6 MB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.277e-05/0.005628, allocations: 7.953 kB / 411.6 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.874e-05/0.005646, allocations: 12.11 kB / 411.6 MB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.005649, allocations: 8 kB / 411.6 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.005654, allocations: 0 / 411.6 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.005656, allocations: 0 / 411.6 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.005883, allocations: 329.6 kB / 411.9 MB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.005885, allocations: 4.438 kB / 411.9 MB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.141e-05/0.005906, allocations: 11.98 kB / 411.9 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.005907, allocations: 0 / 411.9 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.371e-06/0.005914, allocations: 4 kB / 411.9 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.005914, allocations: 0 / 411.9 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.005915, allocations: 0 / 411.9 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.716e-05/0.006012, allocations: 175.4 kB / 412.1 MB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-06/0.006018, allocations: 4 kB / 412.1 MB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.137e-06/0.006027, allocations: 0 / 412.1 MB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.664e-05/0.006054, allocations: 7.938 kB / 412.1 MB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.006077, allocations: 0 / 412.1 MB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-06/0.006081, allocations: 3.984 kB / 412.1 MB, free: 12.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.923e-05/0.00611, allocations: 91.58 kB / 412.2 MB, free: 12.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00611, allocations: 0 / 412.2 MB, free: 12.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001517/0.006261, allocations: 35.72 kB / 412.2 MB, free: 12.54 MB / 394.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0003014/0.006563, allocations: 0.7123 MB / 413 MB, free: 11.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.907e-05/0.006652, allocations: 35.98 kB / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.006653, allocations: 0 / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.234e-05/0.006676, allocations: 15.98 kB / 413 MB, free: 11.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/0.006873, allocations: 15.98 kB / 413 MB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000992/0.007865, allocations: 1.466 MB / 414.5 MB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8e-05/0.007945, allocations: 118.9 kB / 414.6 MB, free: 10.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.705e-05/0.007972, allocations: 11.77 kB / 414.6 MB, free: 10.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.008021, allocations: 44.48 kB / 414.7 MB, free: 9.988 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.008021, allocations: 0 / 414.7 MB, free: 9.988 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01326/0.02129, allocations: 2.686 MB / 417.4 MB, free: 7.289 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.43/6.452, allocations: 11.89 kB / 417.4 MB, free: 7.277 MB / 394.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.533912992104888]