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.001425/0.001425, allocations: 109.2 kB / 20.48 MB, free: 1.477 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.001557/0.001557, allocations: 211.8 kB / 23.79 MB, free: 4.684 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.486/1.486, allocations: 207.6 MB / 234.6 MB, free: 9.977 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.2378/0.2378, allocations: 44.24 MB / 331.1 MB, free: 9.504 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.00245/0.00245, allocations: 67.91 kB / 468.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1264, allocations: 61.03 MB / 0.5169 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003321/0.1298, allocations: 1.574 MB / 0.5184 GB, free: 5.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001509/0.1299, allocations: 43.84 kB / 0.5185 GB, free: 5.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.544e-05/0.13, allocations: 3.938 kB / 0.5185 GB, free: 5.699 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.1301, allocations: 19.84 kB / 0.5185 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.612e-05/0.1301, allocations: 7.922 kB / 0.5185 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.287e-05/0.1302, allocations: 23.97 kB / 0.5185 GB, free: 5.648 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.1304, allocations: 67.83 kB / 0.5186 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.1306, allocations: 95.77 kB / 0.5187 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.897e-05/0.1307, allocations: 39.92 kB / 0.5187 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.34e-05/0.1308, allocations: 47.81 kB / 0.5188 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.279e-05/0.1308, allocations: 8 kB / 0.5188 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.767e-05/0.1308, allocations: 8 kB / 0.5188 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.1309, allocations: 63.83 kB / 0.5189 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.765e-05/0.131, allocations: 63.61 kB / 0.5189 GB, free: 5.254 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.1312, allocations: 151.3 kB / 0.5191 GB, free: 5.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1312, allocations: 0 / 0.5191 GB, free: 5.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1312, allocations: 0 / 0.5191 GB, free: 5.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.884e-06/0.1312, allocations: 4 kB / 0.5191 GB, free: 5.102 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.0005347/0.1317, allocations: 362.1 kB / 0.5194 GB, free: 4.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.1318, allocations: 12.03 kB / 0.5194 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.502e-05/0.1318, allocations: 8.625 kB / 0.5194 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.81e-05/0.1319, allocations: 67.17 kB / 0.5195 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.36e-05/0.132, allocations: 24.8 kB / 0.5195 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.1322, allocations: 166.2 kB / 0.5197 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.1323, allocations: 20.86 kB / 0.5197 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.494e-05/0.1323, allocations: 32.33 kB / 0.5197 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.1327, allocations: 220.2 kB / 0.5199 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.1327, allocations: 0 / 0.5199 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1328, allocations: 8 kB / 0.5199 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.1328, allocations: 8 kB / 0.5199 GB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.1331, allocations: 145.9 kB / 0.5201 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008036/0.1339, allocations: 0.5184 MB / 0.5206 GB, free: 3.422 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.134, allocations: 46.56 kB / 0.5206 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.102e-05/0.1341, allocations: 32.84 kB / 0.5207 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.183e-06/0.1341, allocations: 0 / 0.5207 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.1341, allocations: 38.5 kB / 0.5207 GB, free: 3.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.1341, allocations: 4 kB / 0.5207 GB, free: 3.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005662/0.1347, allocations: 173.8 kB / 0.5209 GB, free: 3.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.1347, allocations: 55.41 kB / 0.5209 GB, free: 3.039 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.1348, allocations: 113.7 kB / 0.521 GB, free: 2.918 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.1348, allocations: 25.7 kB / 0.5211 GB, free: 2.887 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.236e-05/0.1349, allocations: 152.2 kB / 0.5212 GB, free: 2.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.768e-05/0.135, allocations: 28.95 kB / 0.5212 GB, free: 2.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.104e-05/0.135, allocations: 21.7 kB / 0.5213 GB, free: 2.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1352, allocations: 314.8 kB / 0.5216 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.343e-05/0.1352, allocations: 19.98 kB / 0.5216 GB, free: 2.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.9e-05/0.1353, allocations: 37.69 kB / 0.5216 GB, free: 2.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.1355, allocations: 53.7 kB / 0.5217 GB, free: 2.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1355, allocations: 4 kB / 0.5217 GB, free: 2.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002026/0.1357, allocations: 89.55 kB / 0.5217 GB, free: 2.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1357, allocations: 8 kB / 0.5218 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1357, allocations: 0 / 0.5218 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1357, allocations: 0 / 0.5218 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.1358, allocations: 15.98 kB / 0.5218 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.1358, allocations: 11.97 kB / 0.5218 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.059e-05/0.1358, allocations: 8 kB / 0.5218 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.1359, allocations: 0 / 0.5218 GB, free: 2.098 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.0001431/0.136, allocations: 141.8 kB / 0.5219 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.436e-05/0.136, allocations: 0 / 0.5219 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.627e-05/0.136, allocations: 12.38 kB / 0.5219 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.136, allocations: 0 / 0.5219 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.1361, allocations: 3.938 kB / 0.5219 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1361, allocations: 0 / 0.5219 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.1367, allocations: 401.3 kB / 0.5223 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1367, allocations: 0 / 0.5223 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.512e-05/0.1368, allocations: 15.98 kB / 0.5223 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/0.1368, allocations: 11.88 kB / 0.5224 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1368, allocations: 4 kB / 0.5224 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1368, allocations: 0 / 0.5224 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1368, allocations: 0 / 0.5224 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.137, allocations: 187.4 kB / 0.5225 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.469e-05/0.137, allocations: 11.89 kB / 0.5225 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.137, allocations: 0 / 0.5225 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.528e-05/0.1371, allocations: 11.92 kB / 0.5226 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.348e-05/0.1371, allocations: 3.984 kB / 0.5226 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/0.1372, allocations: 8 kB / 0.5226 GB, free: 1.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.665e-05/0.1372, allocations: 79.28 kB / 0.5226 GB, free: 1.148 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1372, allocations: 4 kB / 0.5226 GB, free: 1.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.1374, allocations: 16 kB / 0.5227 GB, free: 1.129 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.0006735/0.1381, allocations: 0.7406 MB / 0.5234 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.1383, allocations: 60.02 kB / 0.5234 GB, free: 312 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1383, allocations: 0 / 0.5234 GB, free: 312 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.551e-05/0.1384, allocations: 27.92 kB / 0.5235 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.1387, allocations: 16.41 kB / 0.5235 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.1406, allocations: 1.542 MB / 0.525 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.1411, allocations: 0.7392 MB / 0.5257 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.481e-05/0.1411, allocations: 8.422 kB / 0.5257 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.1412, allocations: 47.42 kB / 0.5258 GB, free: 13.82 MB / 414.1 MB Notification: Performance of SimCode: time 9.11e-07/0.1412, allocations: 4 kB / 0.5258 GB, free: 13.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.1642, allocations: 2.364 MB / 0.5281 GB, free: 11.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.61, allocations: 11.94 kB / 0.5281 GB, free: 11.44 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.064444132964127]