Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.0009011/0.0009011, allocations: 79.7 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.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.0009092/0.0009092, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.905/0.905, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2325/0.2325, allocations: 34.25 MB / 294.9 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 442.2 MB, free: 1.676 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.007e-05/2.15e-05, allocations: 4.531 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001871/0.001892, allocations: 1.541 MB / 443.7 MB, free: 120 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002115/0.002104, allocations: 59.77 kB / 443.8 MB, free: 60 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.711e-05/0.002161, allocations: 3.938 kB / 443.8 MB, free: 56 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.002292, allocations: 19.84 kB / 443.8 MB, free: 36 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.837e-05/0.002311, allocations: 7.875 kB / 443.8 MB, free: 28 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1533/0.1556, allocations: 32.91 kB / 443.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.1558, allocations: 68.17 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.156, allocations: 82.28 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.862e-05/0.156, allocations: 53.11 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.532e-05/0.1561, allocations: 33.08 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/0.1561, allocations: 8.094 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.1561, allocations: 8.906 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.414e-05/0.1562, allocations: 67.27 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.32e-05/0.1562, allocations: 43.14 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.1564, allocations: 150.7 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1564, allocations: 4.406 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1564, allocations: 0 / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.1564, allocations: 0 / 444.3 MB, free: 43.23 MB / 410.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.0003464/0.1567, allocations: 366.6 kB / 444.7 MB, free: 42.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1568, allocations: 11.75 kB / 444.7 MB, free: 42.94 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.235e-05/0.1569, allocations: 70.89 kB / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/0.1569, allocations: 20.69 kB / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.157, allocations: 159.1 kB / 444.9 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.157, allocations: 15.88 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.1571, allocations: 19.88 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.1573, allocations: 207.5 kB / 445.2 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.1573, allocations: 0.9062 kB / 445.2 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.1573, allocations: 10.88 kB / 445.2 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1573, allocations: 8.844 kB / 445.2 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.1574, allocations: 135.5 kB / 445.3 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003983/0.1578, allocations: 452 kB / 445.8 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.183e-05/0.1579, allocations: 50.5 kB / 445.8 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.585e-05/0.1579, allocations: 26.22 kB / 445.9 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.1579, allocations: 7.438 kB / 445.9 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.1579, allocations: 34.5 kB / 445.9 MB, free: 42.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.158, allocations: 0 / 445.9 MB, free: 42.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.000163/0.1581, allocations: 78.19 kB / 446 MB, free: 42.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.931e-05/0.1581, allocations: 54.59 kB / 446 MB, free: 42.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.721e-05/0.1582, allocations: 108.1 kB / 446.1 MB, free: 42.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.3e-06/0.1582, allocations: 29.58 kB / 446.2 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.1582, allocations: 143.3 kB / 446.3 MB, free: 42.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.1582, allocations: 16.69 kB / 446.3 MB, free: 42.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.252e-05/0.1582, allocations: 16.88 kB / 446.3 MB, free: 42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.767e-05/0.1583, allocations: 321.5 kB / 446.6 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.136e-05/0.1583, allocations: 9.375 kB / 446.7 MB, free: 41.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.759e-05/0.1583, allocations: 13.27 kB / 446.7 MB, free: 41.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.241e-05/0.1584, allocations: 35.77 kB / 446.7 MB, free: 41.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1584, allocations: 7.875 kB / 446.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.039e-05/0.1584, allocations: 64.69 kB / 446.8 MB, free: 41.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1584, allocations: 11.84 kB / 446.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1584, allocations: 0 / 446.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1584, allocations: 0 / 446.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.205e-05/0.1585, allocations: 13.84 kB / 446.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.1585, allocations: 0 / 446.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.398e-05/0.1585, allocations: 7.172 kB / 446.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-06/0.1585, allocations: 0 / 446.8 MB, free: 41.63 MB / 410.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 5.279e-05/0.1586, allocations: 138.2 kB / 446.9 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.1586, allocations: 6.922 kB / 446.9 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.794e-05/0.1586, allocations: 4.125 kB / 447 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1586, allocations: 6.875 kB / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1586, allocations: 0 / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1586, allocations: 0 / 447 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.1588, allocations: 342.5 kB / 447.3 MB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1588, allocations: 6.031 kB / 447.3 MB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.216e-05/0.1588, allocations: 9.484 kB / 447.3 MB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1588, allocations: 2.844 kB / 447.3 MB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.1588, allocations: 0 / 447.3 MB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.1588, allocations: 0 / 447.3 MB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1588, allocations: 3.469 kB / 447.3 MB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.56e-05/0.1589, allocations: 163.4 kB / 447.5 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-06/0.1589, allocations: 11.03 kB / 447.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.061e-05/0.1589, allocations: 3.062 kB / 447.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.771e-05/0.1589, allocations: 3.75 kB / 447.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.184e-05/0.159, allocations: 6.125 kB / 447.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.159, allocations: 1.219 kB / 447.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.641e-05/0.159, allocations: 84.78 kB / 447.6 MB, free: 41.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.159, allocations: 0 / 447.6 MB, free: 41.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001465/0.1591, allocations: 26.41 kB / 447.6 MB, free: 41.01 MB / 410.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.0002207/0.1593, allocations: 0.7191 MB / 448.3 MB, free: 40.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.901e-05/0.1594, allocations: 26.92 kB / 448.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.1594, allocations: 0 / 448.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.867e-05/0.1595, allocations: 22.72 kB / 448.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.1597, allocations: 16.11 kB / 448.4 MB, free: 40.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007329/0.1604, allocations: 1.46 MB / 449.8 MB, free: 39.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.032e-05/0.1605, allocations: 117.4 kB / 450 MB, free: 39.06 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.793e-05/0.1605, allocations: 7.859 kB / 450 MB, free: 39.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.1606, allocations: 45.7 kB / 450 MB, free: 39.05 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1606, allocations: 0 / 450 MB, free: 39.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01483/0.1754, allocations: 2.65 MB / 452.7 MB, free: 38.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.552/6.727, allocations: 7.766 kB / 452.7 MB, free: 38.11 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.697841707617044]