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.001256/0.001256, allocations: 101.9 kB / 20.48 MB, free: 1.383 MB / 14.72 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.00151/0.00151, allocations: 213.2 kB / 23.77 MB, free: 4.551 MB / 14.72 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 1.509/1.509, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] 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.2336/0.2336, allocations: 44.26 MB / 331.1 MB, free: 9.328 MB / 270.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002472/0.002472, allocations: 74.23 kB / 468.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1502, allocations: 61.03 MB / 0.5169 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003422/0.1536, allocations: 1.531 MB / 0.5184 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001696/0.1538, allocations: 51.77 kB / 0.5184 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.181e-05/0.1539, allocations: 4 kB / 0.5184 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.154, allocations: 19.8 kB / 0.5185 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.033e-05/0.1541, allocations: 7.938 kB / 0.5185 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001098/0.1542, allocations: 23.97 kB / 0.5185 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.1543, allocations: 75.75 kB / 0.5186 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003118/0.1546, allocations: 95.81 kB / 0.5187 GB, free: 5.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.61e-05/0.1547, allocations: 31.92 kB / 0.5187 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.395e-05/0.1548, allocations: 47.78 kB / 0.5187 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.1548, allocations: 8 kB / 0.5187 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.075e-05/0.1548, allocations: 8 kB / 0.5188 GB, free: 5.289 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.1549, allocations: 67.81 kB / 0.5188 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.275e-05/0.155, allocations: 47.73 kB / 0.5189 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.1552, allocations: 155.3 kB / 0.519 GB, free: 5.023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1552, allocations: 7.984 kB / 0.519 GB, free: 5.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1552, allocations: 0 / 0.519 GB, free: 5.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.1552, allocations: 0 / 0.519 GB, free: 5.016 MB / 398.1 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.0005938/0.1558, allocations: 358.2 kB / 0.5194 GB, free: 4.637 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.1559, allocations: 16.02 kB / 0.5194 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.437e-05/0.1559, allocations: 8.625 kB / 0.5194 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.156, allocations: 67.17 kB / 0.5194 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.626e-05/0.1561, allocations: 24.8 kB / 0.5195 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.1563, allocations: 158.3 kB / 0.5196 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.1564, allocations: 20.88 kB / 0.5196 GB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.814e-05/0.1564, allocations: 28.33 kB / 0.5197 GB, free: 4.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004153/0.1568, allocations: 220.2 kB / 0.5199 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1569, allocations: 0 / 0.5199 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.1569, allocations: 8 kB / 0.5199 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1569, allocations: 8 kB / 0.5199 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002722/0.1572, allocations: 145.9 kB / 0.52 GB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007951/0.158, allocations: 499.1 kB / 0.5205 GB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.1581, allocations: 50.48 kB / 0.5206 GB, free: 3.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.375e-05/0.1582, allocations: 32.84 kB / 0.5206 GB, free: 3.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1582, allocations: 0 / 0.5206 GB, free: 3.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.1582, allocations: 34.56 kB / 0.5206 GB, free: 3.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.1582, allocations: 0 / 0.5206 GB, free: 3.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000542/0.1587, allocations: 173.2 kB / 0.5208 GB, free: 3.066 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.1588, allocations: 55.41 kB / 0.5208 GB, free: 3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.1589, allocations: 114.3 kB / 0.5209 GB, free: 2.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.1589, allocations: 33.64 kB / 0.521 GB, free: 2.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.159, allocations: 148.2 kB / 0.5211 GB, free: 2.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.483e-05/0.1591, allocations: 31.94 kB / 0.5212 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/0.1591, allocations: 17.72 kB / 0.5212 GB, free: 2.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1593, allocations: 322.8 kB / 0.5215 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.766e-05/0.1593, allocations: 11.98 kB / 0.5215 GB, free: 2.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.717e-05/0.1594, allocations: 37.7 kB / 0.5215 GB, free: 2.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.1595, allocations: 61.62 kB / 0.5216 GB, free: 2.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1595, allocations: 3.938 kB / 0.5216 GB, free: 2.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002014/0.1597, allocations: 85.62 kB / 0.5217 GB, free: 2.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1598, allocations: 7.984 kB / 0.5217 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1598, allocations: 0 / 0.5217 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.1598, allocations: 8.031 kB / 0.5217 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.1599, allocations: 20 kB / 0.5217 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.1599, allocations: 3.938 kB / 0.5217 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.046e-05/0.1599, allocations: 7.984 kB / 0.5217 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.16, allocations: 4 kB / 0.5217 GB, free: 2.043 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 0.0001357/0.1601, allocations: 129.8 kB / 0.5218 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.1601, allocations: 7.984 kB / 0.5219 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.678e-05/0.1602, allocations: 12.36 kB / 0.5219 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1602, allocations: 0 / 0.5219 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1602, allocations: 7.938 kB / 0.5219 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.1602, allocations: 4 kB / 0.5219 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005496/0.1607, allocations: 397.3 kB / 0.5223 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1607, allocations: 4 kB / 0.5223 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.1608, allocations: 12 kB / 0.5223 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.1608, allocations: 3.938 kB / 0.5223 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.1608, allocations: 3.938 kB / 0.5223 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1608, allocations: 3.984 kB / 0.5223 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1608, allocations: 4 kB / 0.5223 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.161, allocations: 176.6 kB / 0.5225 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.248e-05/0.1611, allocations: 7.891 kB / 0.5225 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.1611, allocations: 4 kB / 0.5225 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.425e-05/0.1611, allocations: 11.92 kB / 0.5225 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.1612, allocations: 7.984 kB / 0.5225 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.1612, allocations: 0 / 0.5225 GB, free: 1.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.386e-05/0.1612, allocations: 87.28 kB / 0.5226 GB, free: 1.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1612, allocations: 0 / 0.5226 GB, free: 1.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.1615, allocations: 12 kB / 0.5226 GB, free: 1.09 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.00068/0.1621, allocations: 0.7553 MB / 0.5233 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000194/0.1623, allocations: 52.89 kB / 0.5234 GB, free: 264 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1623, allocations: 0 / 0.5234 GB, free: 264 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.842e-05/0.1624, allocations: 23.98 kB / 0.5234 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.1627, allocations: 12.16 kB / 0.5234 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.1646, allocations: 1.557 MB / 0.5249 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.1648, allocations: 130.8 kB / 0.525 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.134e-05/0.1648, allocations: 8.5 kB / 0.5251 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.777e-05/0.1649, allocations: 47.42 kB / 0.5251 GB, free: 14.38 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1649, allocations: 0 / 0.5251 GB, free: 14.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.1865, allocations: 2.436 MB / 0.5275 GB, free: 11.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/11.97, allocations: 4 kB / 0.5275 GB, free: 11.94 MB / 414.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/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: 15.408402658067644]