Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 114.4 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001263, allocations: 187 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 242.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2124/0.2124, allocations: 44.17 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4625/0.4638, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003023/0.4668, allocations: 1.542 MB / 0.5199 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001355/0.467, allocations: 59.17 kB / 0.52 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.905e-05/0.4671, allocations: 1.188 kB / 0.52 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.4672, allocations: 19.31 kB / 0.52 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.735e-05/0.4673, allocations: 12.97 kB / 0.52 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.956e-05/0.4674, allocations: 20.2 kB / 0.52 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.4675, allocations: 74.73 kB / 0.5201 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002648/0.4678, allocations: 120.4 kB / 0.5202 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.882e-05/0.4678, allocations: 43.23 kB / 0.5202 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.694e-05/0.4679, allocations: 39.78 kB / 0.5203 GB, free: 2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.4679, allocations: 7.875 kB / 0.5203 GB, free: 2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.479e-05/0.4679, allocations: 7.906 kB / 0.5203 GB, free: 2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9e-05/0.468, allocations: 67.58 kB / 0.5204 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.346e-05/0.4681, allocations: 75.08 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.4683, allocations: 147.3 kB / 0.5206 GB, free: 1.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4683, allocations: 2.016 kB / 0.5206 GB, free: 1.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4684, allocations: 0 / 0.5206 GB, free: 1.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.4684, allocations: 0 / 0.5206 GB, free: 1.859 MB / 382.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.0004584/0.4688, allocations: 435.5 kB / 0.521 GB, free: 1.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.4689, allocations: 14.09 kB / 0.521 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.348e-05/0.469, allocations: 63.97 kB / 0.5211 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.832e-05/0.469, allocations: 18.72 kB / 0.5211 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.4692, allocations: 222.3 kB / 0.5213 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.4692, allocations: 16.47 kB / 0.5213 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.4693, allocations: 21.88 kB / 0.5213 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003753/0.4697, allocations: 209.6 kB / 0.5215 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.4697, allocations: 0.75 kB / 0.5215 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.4697, allocations: 6.156 kB / 0.5215 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4697, allocations: 8.781 kB / 0.5216 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.47, allocations: 129.8 kB / 0.5217 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.4706, allocations: 0.515 MB / 0.5222 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.61e-05/0.4707, allocations: 42.11 kB / 0.5222 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.324e-05/0.4708, allocations: 27.52 kB / 0.5222 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.4708, allocations: 1.031 kB / 0.5222 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.4708, allocations: 36.53 kB / 0.5223 GB, free: 0.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.4708, allocations: 0 / 0.5223 GB, free: 0.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002252/0.4711, allocations: 77.66 kB / 0.5224 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.391e-05/0.4711, allocations: 52.16 kB / 0.5224 GB, free: 444 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.024e-05/0.4712, allocations: 107.6 kB / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.4712, allocations: 26.8 kB / 0.5225 GB, free: 308 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.317e-05/0.4712, allocations: 147.1 kB / 0.5227 GB, free: 176 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.4713, allocations: 15.59 kB / 0.5227 GB, free: 164 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.4713, allocations: 14.86 kB / 0.5227 GB, free: 148 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.4714, allocations: 320.1 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.317e-05/0.4715, allocations: 14.27 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.588e-05/0.4715, allocations: 13.83 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.924e-05/0.4716, allocations: 36.73 kB / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4716, allocations: 0 / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001189/0.4717, allocations: 64.88 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.4718, allocations: 5.25 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4718, allocations: 0.5625 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.4718, allocations: 1.375 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.138e-05/0.4719, allocations: 8.828 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.4719, allocations: 1.406 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.976e-05/0.4719, allocations: 11.23 kB / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.4719, allocations: 0.6094 kB / 0.5232 GB, free: 15.75 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.000128/0.4721, allocations: 141.8 kB / 0.5233 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.4721, allocations: 6.844 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.631e-05/0.4721, allocations: 9.922 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.4721, allocations: 1.125 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.4721, allocations: 0 / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.4722, allocations: 8.672 kB / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.4726, allocations: 361.7 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4726, allocations: 0 / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-05/0.4727, allocations: 11.08 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.4727, allocations: 4.562 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.4727, allocations: 4.25 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4727, allocations: 5.312 kB / 0.5237 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.4727, allocations: 8.734 kB / 0.5237 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.4729, allocations: 160.7 kB / 0.5239 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.4729, allocations: 78.77 kB / 0.5239 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.473, allocations: 1.703 kB / 0.5239 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.023e-05/0.473, allocations: 6.891 kB / 0.5239 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.4731, allocations: 11.56 kB / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-06/0.4731, allocations: 0.9062 kB / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.103e-05/0.4731, allocations: 88.81 kB / 0.524 GB, free: 14.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4731, allocations: 0 / 0.524 GB, free: 14.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.4734, allocations: 34.5 kB / 0.5241 GB, free: 14.91 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.0005186/0.4739, allocations: 0.7084 MB / 0.5248 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000138/0.4741, allocations: 29.91 kB / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4741, allocations: 0 / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.726e-05/0.4741, allocations: 22.41 kB / 0.5248 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.4745, allocations: 27.5 kB / 0.5248 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.4761, allocations: 1.446 MB / 0.5262 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.4765, allocations: 0.7381 MB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.834e-05/0.4765, allocations: 3.547 kB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.672e-05/0.4766, allocations: 48.52 kB / 0.527 GB, free: 12.19 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4766, allocations: 3.938 kB / 0.527 GB, free: 12.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01812/0.4947, allocations: 1.996 MB / 0.529 GB, free: 11.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.443/7.938, allocations: 6.469 kB / 0.529 GB, free: 11.5 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches