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.001546/0.001546, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001701/0.001701, allocations: 216.8 kB / 22.99 MB, free: 4.977 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.547/1.547, allocations: 207.7 MB / 233.8 MB, free: 9.793 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.2504/0.2504, allocations: 44.26 MB / 330.3 MB, free: 9.293 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.002782/0.002782, allocations: 75.89 kB / 467.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1349, allocations: 61.06 MB / 0.5162 GB, free: 7.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003133/0.138, allocations: 1.514 MB / 0.5176 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000159/0.1381, allocations: 47.83 kB / 0.5177 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.241e-05/0.1382, allocations: 7.938 kB / 0.5177 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.1383, allocations: 19.86 kB / 0.5177 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.829e-05/0.1384, allocations: 7.922 kB / 0.5177 GB, free: 5.551 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.354e-05/0.1385, allocations: 19.98 kB / 0.5177 GB, free: 5.531 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.1386, allocations: 75.8 kB / 0.5178 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.1389, allocations: 87.83 kB / 0.5179 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.582e-05/0.1389, allocations: 35.86 kB / 0.5179 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.882e-05/0.139, allocations: 43.78 kB / 0.518 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.139, allocations: 8 kB / 0.518 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.674e-05/0.139, allocations: 8 kB / 0.518 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.164e-05/0.1391, allocations: 71.8 kB / 0.518 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.264e-05/0.1392, allocations: 51.73 kB / 0.5181 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.1394, allocations: 155.3 kB / 0.5182 GB, free: 4.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1394, allocations: 0 / 0.5182 GB, free: 4.996 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1394, allocations: 0 / 0.5182 GB, free: 4.996 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.83e-06/0.1394, allocations: 0 / 0.5182 GB, free: 4.996 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.0005281/0.1399, allocations: 362.1 kB / 0.5186 GB, free: 4.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.14, allocations: 8.031 kB / 0.5186 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.158e-05/0.1401, allocations: 67.12 kB / 0.5187 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.112e-05/0.1401, allocations: 16.84 kB / 0.5187 GB, free: 4.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.1404, allocations: 162.3 kB / 0.5188 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.1404, allocations: 16.81 kB / 0.5189 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.1404, allocations: 24.38 kB / 0.5189 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.1408, allocations: 207.5 kB / 0.5191 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1408, allocations: 0 / 0.5191 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.1408, allocations: 19.92 kB / 0.5191 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1408, allocations: 7.984 kB / 0.5191 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.1411, allocations: 129.7 kB / 0.5192 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006843/0.1418, allocations: 454.9 kB / 0.5197 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.1419, allocations: 46.5 kB / 0.5197 GB, free: 3.387 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.387e-05/0.1419, allocations: 24.97 kB / 0.5197 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.1419, allocations: 0 / 0.5197 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.142, allocations: 34.56 kB / 0.5198 GB, free: 3.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.142, allocations: 0 / 0.5198 GB, free: 3.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.000245/0.1422, allocations: 81.56 kB / 0.5198 GB, free: 3.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.1423, allocations: 51.41 kB / 0.5199 GB, free: 3.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.442e-05/0.1423, allocations: 117.8 kB / 0.52 GB, free: 3.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.1424, allocations: 25.7 kB / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.921e-05/0.1425, allocations: 144.1 kB / 0.5202 GB, free: 2.863 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.1425, allocations: 19.84 kB / 0.5202 GB, free: 2.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.1425, allocations: 17.72 kB / 0.5202 GB, free: 2.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1427, allocations: 318.8 kB / 0.5205 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.336e-05/0.1427, allocations: 12 kB / 0.5205 GB, free: 2.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.619e-05/0.1427, allocations: 11.98 kB / 0.5205 GB, free: 2.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.182e-05/0.1428, allocations: 36.78 kB / 0.5206 GB, free: 2.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1428, allocations: 4 kB / 0.5206 GB, free: 2.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001243/0.143, allocations: 61.64 kB / 0.5206 GB, free: 2.367 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.143, allocations: 4 kB / 0.5206 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.143, allocations: 4 kB / 0.5206 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.143, allocations: 0 / 0.5206 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.792e-05/0.1431, allocations: 11.98 kB / 0.5206 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.1431, allocations: 0 / 0.5206 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.1431, allocations: 0 / 0.5206 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.1431, allocations: 4 kB / 0.5206 GB, free: 2.344 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.000117/0.1432, allocations: 141.8 kB / 0.5208 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/0.1433, allocations: 11.89 kB / 0.5208 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.1433, allocations: 8.5 kB / 0.5208 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1433, allocations: 0 / 0.5208 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1433, allocations: 0 / 0.5208 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1433, allocations: 0 / 0.5208 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.1437, allocations: 341.6 kB / 0.5211 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.1437, allocations: 3.984 kB / 0.5211 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.573e-05/0.1437, allocations: 11.94 kB / 0.5211 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1438, allocations: 0 / 0.5211 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.1438, allocations: 11.94 kB / 0.5211 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1438, allocations: 0 / 0.5211 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1438, allocations: 3.938 kB / 0.5212 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.1439, allocations: 159.5 kB / 0.5213 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.479e-05/0.144, allocations: 11.89 kB / 0.5213 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.088e-05/0.144, allocations: 0 / 0.5213 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.112e-05/0.144, allocations: 0 / 0.5213 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.625e-05/0.1441, allocations: 15.92 kB / 0.5213 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.1441, allocations: 0 / 0.5213 GB, free: 1.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.304e-05/0.1441, allocations: 87.28 kB / 0.5214 GB, free: 1.473 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1441, allocations: 4 kB / 0.5214 GB, free: 1.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002304/0.1443, allocations: 23.84 kB / 0.5214 GB, free: 1.445 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.0006264/0.145, allocations: 0.7046 MB / 0.5221 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.1451, allocations: 28.05 kB / 0.5222 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1451, allocations: 0 / 0.5222 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.208e-05/0.1451, allocations: 23.92 kB / 0.5222 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.1455, allocations: 20.38 kB / 0.5222 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.1473, allocations: 1.458 MB / 0.5236 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.1474, allocations: 122.7 kB / 0.5237 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.081e-05/0.1475, allocations: 0 / 0.5237 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.821e-05/0.1475, allocations: 47.42 kB / 0.5238 GB, free: 14.92 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1475, allocations: 0 / 0.5238 GB, free: 14.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.1758, allocations: 2.559 MB / 0.5263 GB, free: 12.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.48, allocations: 15.64 kB / 0.5263 GB, free: 12.35 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: 14.902680594008416]