Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000994/0.0009942, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007979/0.000798, allocations: 81.75 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.209e-05/2.213e-05, allocations: 4 kB / 322.4 MB, free: 17.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09429/0.09433, allocations: 47.58 MB / 370 MB, free: 1.727 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.338/0.4324, allocations: 78.92 MB / 448.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.4326, allocations: 66.84 kB / 449 MB, free: 14.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02503/0.4577, allocations: 9.003 MB / 458 MB, free: 6.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4577, allocations: 0 / 458 MB, free: 6.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.987e-05/0.4578, allocations: 11.94 kB / 458 MB, free: 6.719 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006984/0.4585, allocations: 0.5721 MB / 458.6 MB, free: 6.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4585, allocations: 8.031 kB / 458.6 MB, free: 6.098 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.447e-05/0.4586, allocations: 31.62 kB / 458.6 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005907/0.4592, allocations: 342.4 kB / 459 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.4592, allocations: 7.938 kB / 459 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.253e-05/0.4593, allocations: 8 kB / 459 MB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.4595, allocations: 158.6 kB / 459.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.4596, allocations: 0 / 459.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.4596, allocations: 4 kB / 459.1 MB, free: 5.578 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.4596, allocations: 0 / 459.1 MB, free: 5.578 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.4597, allocations: 67.36 kB / 459.2 MB, free: 5.535 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007377/0.4605, allocations: 0.5112 MB / 459.7 MB, free: 5.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.4607, allocations: 130.7 kB / 459.8 MB, free: 4.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.658e-05/0.4608, allocations: 44.86 kB / 459.9 MB, free: 4.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.4608, allocations: 8 kB / 459.9 MB, free: 4.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.461, allocations: 107.5 kB / 460 MB, free: 4.723 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.461, allocations: 0 / 460 MB, free: 4.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003396/0.4614, allocations: 177.1 kB / 460.2 MB, free: 4.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.4615, allocations: 110.7 kB / 460.3 MB, free: 4.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/0.4619, allocations: 390.6 kB / 460.7 MB, free: 4.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.462, allocations: 33.7 kB / 460.7 MB, free: 3.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4621, allocations: 168 kB / 460.9 MB, free: 3.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.206e-05/0.4621, allocations: 39.55 kB / 460.9 MB, free: 3.773 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-06/0.4622, allocations: 0 / 460.9 MB, free: 3.773 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4623, allocations: 342.8 kB / 461.2 MB, free: 3.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.961e-05/0.4624, allocations: 43.98 kB / 461.3 MB, free: 3.387 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.4625, allocations: 98.86 kB / 461.4 MB, free: 3.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.584e-05/0.4626, allocations: 57.45 kB / 461.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4627, allocations: 0 / 461.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00026/0.4629, allocations: 169.2 kB / 461.6 MB, free: 3.043 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.4629, allocations: 8 kB / 461.6 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.463, allocations: 4 kB / 461.6 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.463, allocations: 3.953 kB / 461.6 MB, free: 3.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.4631, allocations: 28.05 kB / 461.6 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-05/0.4632, allocations: 3.938 kB / 461.6 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.4633, allocations: 19.89 kB / 461.7 MB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.4633, allocations: 11.94 kB / 461.7 MB, free: 2.965 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.452e-05/0.4634, allocations: 122.7 kB / 461.8 MB, free: 2.836 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.4635, allocations: 27.62 kB / 461.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003371/0.4638, allocations: 200 kB / 462 MB, free: 2.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.4638, allocations: 7.953 kB / 462 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.4638, allocations: 0 / 462 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.4638, allocations: 0 / 462 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003021/0.4641, allocations: 317.5 kB / 462.3 MB, free: 2.238 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4642, allocations: 0 / 462.3 MB, free: 2.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.147e-05/0.4642, allocations: 15.98 kB / 462.3 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.4642, allocations: 0 / 462.3 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.4642, allocations: 4 kB / 462.3 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4642, allocations: 0 / 462.3 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4643, allocations: 3.953 kB / 462.3 MB, free: 2.215 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.4646, allocations: 212.6 kB / 462.6 MB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.4647, allocations: 124.7 kB / 462.7 MB, free: 1.848 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.785e-05/0.4648, allocations: 11.98 kB / 462.7 MB, free: 1.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.701e-05/0.4649, allocations: 12 kB / 462.7 MB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/0.4649, allocations: 15.97 kB / 462.7 MB, free: 1.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.465, allocations: 15.95 kB / 462.7 MB, free: 1.793 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003428/0.4653, allocations: 310.1 kB / 463 MB, free: 1.488 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4653, allocations: 4 kB / 463 MB, free: 1.484 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002902/0.4656, allocations: 60.19 kB / 463.1 MB, free: 1.426 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008842/0.4665, allocations: 404.5 kB / 463.5 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002669/0.4668, allocations: 127.8 kB / 463.6 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4668, allocations: 4 kB / 463.6 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.4669, allocations: 63.94 kB / 463.7 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.4673, allocations: 66.58 kB / 463.7 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007007/0.468, allocations: 387.7 kB / 464.1 MB, free: 388 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.4684, allocations: 0.7872 MB / 464.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000133/0.4685, allocations: 45.98 kB / 465 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.211e-05/0.4686, allocations: 27.42 kB / 465 MB, free: 15.49 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4686, allocations: 4 kB / 465 MB, free: 15.48 MB / 346.7 MB Notification: Performance of Templates: time 0.007373/0.476, allocations: 3.816 MB / 468.8 MB, free: 11.66 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches