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.001408/0.001408, allocations: 114.2 kB / 19.69 MB, free: 2.188 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.001638/0.001638, allocations: 213.2 kB / 23 MB, free: 5.004 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.44/1.44, allocations: 207.6 MB / 233.8 MB, free: 10.01 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.2315/0.2315, allocations: 44.25 MB / 330.3 MB, free: 9.535 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="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: 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.002229/0.002229, allocations: 86.53 kB / 467.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1381, allocations: 61.03 MB / 0.5161 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002887/0.141, allocations: 1.568 MB / 0.5177 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001465/0.1411, allocations: 55.75 kB / 0.5177 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.811e-05/0.1412, allocations: 0 / 0.5177 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.1413, allocations: 15.86 kB / 0.5177 GB, free: 5.703 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.292e-05/0.1413, allocations: 3.938 kB / 0.5177 GB, free: 5.699 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.937e-05/0.1414, allocations: 23.97 kB / 0.5178 GB, free: 5.676 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.1416, allocations: 75.69 kB / 0.5178 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.1418, allocations: 95.83 kB / 0.5179 GB, free: 5.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.932e-05/0.1419, allocations: 39.91 kB / 0.518 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.619e-05/0.1419, allocations: 39.84 kB / 0.518 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.185e-05/0.1419, allocations: 8 kB / 0.518 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.467e-05/0.142, allocations: 8 kB / 0.518 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.219e-05/0.142, allocations: 71.81 kB / 0.5181 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.829e-05/0.1421, allocations: 67.61 kB / 0.5181 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.1423, allocations: 143.3 kB / 0.5183 GB, free: 5.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1423, allocations: 3.984 kB / 0.5183 GB, free: 5.125 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1423, allocations: 0 / 0.5183 GB, free: 5.125 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1423, allocations: 0 / 0.5183 GB, free: 5.125 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.0005147/0.1428, allocations: 366.2 kB / 0.5186 GB, free: 4.738 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1429, allocations: 12.02 kB / 0.5187 GB, free: 4.727 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.341e-05/0.143, allocations: 63.12 kB / 0.5187 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.75e-05/0.143, allocations: 20.84 kB / 0.5187 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.1432, allocations: 158.3 kB / 0.5189 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.1432, allocations: 12.81 kB / 0.5189 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.1433, allocations: 24.38 kB / 0.5189 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.1436, allocations: 211.5 kB / 0.5191 GB, free: 4.207 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.1437, allocations: 3.984 kB / 0.5191 GB, free: 4.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.1437, allocations: 12 kB / 0.5191 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1437, allocations: 4 kB / 0.5191 GB, free: 4.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.1439, allocations: 129.7 kB / 0.5193 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006485/0.1446, allocations: 482.8 kB / 0.5197 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.333e-05/0.1447, allocations: 46.5 kB / 0.5198 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.256e-05/0.1447, allocations: 28.98 kB / 0.5198 GB, free: 3.461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.1447, allocations: 7.922 kB / 0.5198 GB, free: 3.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1448, allocations: 34.56 kB / 0.5198 GB, free: 3.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.1448, allocations: 0 / 0.5198 GB, free: 3.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002284/0.145, allocations: 73.62 kB / 0.5199 GB, free: 3.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.145, allocations: 55.41 kB / 0.52 GB, free: 3.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.214e-05/0.1451, allocations: 105.8 kB / 0.5201 GB, free: 3.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.1451, allocations: 29.7 kB / 0.5201 GB, free: 3.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.1452, allocations: 144.1 kB / 0.5202 GB, free: 2.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.1452, allocations: 11.84 kB / 0.5202 GB, free: 2.957 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.791e-05/0.1453, allocations: 21.7 kB / 0.5203 GB, free: 2.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1454, allocations: 322.8 kB / 0.5206 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.1455, allocations: 7.984 kB / 0.5206 GB, free: 2.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.04e-05/0.1455, allocations: 19.94 kB / 0.5206 GB, free: 2.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.744e-05/0.1456, allocations: 28.84 kB / 0.5206 GB, free: 2.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1456, allocations: 0 / 0.5206 GB, free: 2.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001239/0.1457, allocations: 73.56 kB / 0.5207 GB, free: 2.469 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.1457, allocations: 4 kB / 0.5207 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1457, allocations: 0 / 0.5207 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.1458, allocations: 0 / 0.5207 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.962e-05/0.1458, allocations: 8 kB / 0.5207 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.1458, allocations: 4 kB / 0.5207 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.678e-05/0.1459, allocations: 7.938 kB / 0.5207 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.1459, allocations: 4.312 kB / 0.5207 GB, free: 2.441 MB / 398.1 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 0.0001109/0.146, allocations: 137.8 kB / 0.5208 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.326e-05/0.146, allocations: 3.953 kB / 0.5209 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.265e-05/0.146, allocations: 8.062 kB / 0.5209 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.146, allocations: 4 kB / 0.5209 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.146, allocations: 0 / 0.5209 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.146, allocations: 3.984 kB / 0.5209 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.1464, allocations: 346 kB / 0.5212 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1464, allocations: 4 kB / 0.5212 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.249e-05/0.1465, allocations: 11.98 kB / 0.5212 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1465, allocations: 3.938 kB / 0.5212 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1465, allocations: 0 / 0.5212 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1465, allocations: 0 / 0.5212 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1465, allocations: 7.938 kB / 0.5212 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/0.1467, allocations: 159.5 kB / 0.5214 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.33e-05/0.1467, allocations: 11.89 kB / 0.5214 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.1467, allocations: 0 / 0.5214 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.153e-05/0.1467, allocations: 4 kB / 0.5214 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.1468, allocations: 7.922 kB / 0.5214 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.1468, allocations: 0 / 0.5214 GB, free: 1.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.711e-05/0.1468, allocations: 95.2 kB / 0.5215 GB, free: 1.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1468, allocations: 0 / 0.5215 GB, free: 1.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000232/0.1471, allocations: 31.84 kB / 0.5215 GB, free: 1.539 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 (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.0005608/0.1476, allocations: 0.6969 MB / 0.5222 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000144/0.1478, allocations: 35.98 kB / 0.5222 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1478, allocations: 0 / 0.5222 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.307e-05/0.1478, allocations: 15.98 kB / 0.5222 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.1481, allocations: 20.31 kB / 0.5223 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.1498, allocations: 1.454 MB / 0.5237 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.1502, allocations: 0.7351 MB / 0.5244 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.581e-05/0.1502, allocations: 7.984 kB / 0.5244 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.902e-05/0.1503, allocations: 51.42 kB / 0.5245 GB, free: 14.39 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1503, allocations: 0 / 0.5245 GB, free: 14.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02887/0.1791, allocations: 2.118 MB / 0.5265 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/10.91, allocations: 4.062 kB / 0.5265 GB, free: 12.27 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.109635293949395]