Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002408/0.002408, allocations: 181.6 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.98/3.98, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001193/0.001193, allocations: 90.36 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006124/0.0006131, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7376/0.7383, allocations: 47.58 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1862/0.9245, allocations: 79.06 MB / 454.8 MB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000472/0.9251, allocations: 71.97 kB / 454.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05253/0.9777, allocations: 9.043 MB / 463.9 MB, free: 8.445 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.9777, allocations: 0 / 463.9 MB, free: 8.445 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.466e-05/0.9778, allocations: 8 kB / 463.9 MB, free: 8.438 MB / 346.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.001483/0.9793, allocations: 0.6194 MB / 464.5 MB, free: 7.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.028e-05/0.9794, allocations: 12.03 kB / 464.5 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.9795, allocations: 40.5 kB / 464.6 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000821/0.9804, allocations: 355.8 kB / 464.9 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.9804, allocations: 8.375 kB / 464.9 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.9805, allocations: 12.38 kB / 464.9 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004621/0.981, allocations: 151.1 kB / 465.1 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.981, allocations: 192 / 465.1 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.981, allocations: 7.938 kB / 465.1 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.981, allocations: 11.98 kB / 465.1 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002504/0.9813, allocations: 71.83 kB / 465.2 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.9825, allocations: 0.5082 MB / 465.7 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004736/0.983, allocations: 146.7 kB / 465.8 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.9832, allocations: 48.84 kB / 465.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.9833, allocations: 0 / 465.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003482/0.9836, allocations: 122.7 kB / 466 MB, free: 6.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.764e-06/0.9836, allocations: 0 / 466 MB, free: 6.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007373/0.9844, allocations: 221.1 kB / 466.2 MB, free: 5.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.006e-05/0.9845, allocations: 110.8 kB / 466.3 MB, free: 5.797 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007843/0.9853, allocations: 432.4 kB / 466.7 MB, free: 5.371 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.959e-05/0.9853, allocations: 33.7 kB / 466.8 MB, free: 5.332 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.9855, allocations: 160 kB / 466.9 MB, free: 5.172 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.33e-05/0.9856, allocations: 47.44 kB / 467 MB, free: 5.125 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/0.9856, allocations: 0 / 467 MB, free: 5.125 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.9859, allocations: 346.8 kB / 467.3 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.986, allocations: 43.97 kB / 467.4 MB, free: 4.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.9863, allocations: 104.7 kB / 467.5 MB, free: 4.613 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.9866, allocations: 114.5 kB / 467.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.9866, allocations: 0 / 467.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004963/0.9871, allocations: 188 kB / 467.8 MB, free: 4.305 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.9872, allocations: 4 kB / 467.8 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.9872, allocations: 0 / 467.8 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.9872, allocations: 4 kB / 467.8 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.9874, allocations: 28.05 kB / 467.8 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.404e-05/0.9875, allocations: 11.88 kB / 467.8 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.9876, allocations: 12 kB / 467.8 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/0.9877, allocations: 11.98 kB / 467.8 MB, free: 4.234 MB / 346.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 () * Number of clocked 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 0.0002657/0.988, allocations: 167.5 kB / 468 MB, free: 4.059 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-05/0.988, allocations: 27.62 kB / 468 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006014/0.9886, allocations: 208.4 kB / 468.2 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.9887, allocations: 0 / 468.2 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.9887, allocations: 11.92 kB / 468.2 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.9887, allocations: 3.938 kB / 468.2 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.9892, allocations: 317.4 kB / 468.5 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.9892, allocations: 0 / 468.5 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.271e-05/0.9893, allocations: 8 kB / 468.5 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.363e-06/0.9893, allocations: 3.984 kB / 468.6 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.9894, allocations: 8 kB / 468.6 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.9894, allocations: 0 / 468.6 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.9894, allocations: 7.938 kB / 468.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000586/0.99, allocations: 212.6 kB / 468.8 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.9902, allocations: 124.7 kB / 468.9 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.606e-05/0.9903, allocations: 8 kB / 468.9 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.9905, allocations: 4 kB / 468.9 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.9906, allocations: 23.91 kB / 468.9 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.9906, allocations: 8 kB / 468.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006247/0.9913, allocations: 311 kB / 469.2 MB, free: 2.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9913, allocations: 0 / 469.2 MB, free: 2.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005967/0.9919, allocations: 71.83 kB / 469.3 MB, free: 2.637 MB / 346.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) * Number of clocked states: 0 () * 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.001647/0.9935, allocations: 445.4 kB / 469.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006599/0.9942, allocations: 135.8 kB / 469.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.842e-06/0.9943, allocations: 8.062 kB / 469.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002321/0.9945, allocations: 59.97 kB / 469.9 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007229/0.9952, allocations: 62.55 kB / 470 MB, free: 1.957 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.9969, allocations: 0.5987 MB / 470.6 MB, free: 1.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006199/0.9975, allocations: 0.7755 MB / 471.4 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.9977, allocations: 31.42 kB / 471.4 MB, free: 500 kB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/0.9977, allocations: 0 / 471.4 MB, free: 500 kB / 346.7 MB Notification: Performance of Templates: time 0.01216/1.01, allocations: 4.281 MB / 475.7 MB, free: 12.21 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches