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.001275/0.001275, allocations: 177.2 kB / 16.41 MB, free: 5.703 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.385/1.385, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.000789/0.0007893, allocations: 86.31 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003377, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2552, allocations: 47.58 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002167/0.2574, allocations: 1.64 MB / 376.2 MB, free: 44.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.2587, allocations: 0.9913 MB / 377.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2588, allocations: 5.312 kB / 377.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007074/0.2596, allocations: 268.5 kB / 377.4 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003348/0.2599, allocations: 173.9 kB / 377.6 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.2604, allocations: 227.3 kB / 377.8 MB, free: 43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003059/0.2607, allocations: 304.7 kB / 378.1 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.2609, allocations: 56.27 kB / 378.2 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.261, allocations: 122.2 kB / 378.3 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.2612, allocations: 127.1 kB / 378.4 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.109e-05/0.2612, allocations: 5.875 kB / 378.4 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.2614, allocations: 62.7 kB / 378.5 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.218e-05/0.2615, allocations: 69.75 kB / 378.6 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.273e-05/0.2616, allocations: 63.52 kB / 378.6 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.2618, allocations: 260.5 kB / 378.9 MB, free: 42.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2619, allocations: 5.156 kB / 378.9 MB, free: 42.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2619, allocations: 0 / 378.9 MB, free: 42.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.2619, allocations: 0 / 378.9 MB, free: 42.36 MB / 298.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.0008067/0.2627, allocations: 0.6145 MB / 379.5 MB, free: 41.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2627, allocations: 9.125 kB / 379.5 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.58e-05/0.2628, allocations: 30.84 kB / 379.5 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.2632, allocations: 324 kB / 379.9 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.2632, allocations: 4.625 kB / 379.9 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.2633, allocations: 11.78 kB / 379.9 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.2636, allocations: 148.7 kB / 380 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.2636, allocations: 0 / 380 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.2636, allocations: 6.344 kB / 380 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2636, allocations: 2.344 kB / 380 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001706/0.2638, allocations: 74.62 kB / 380.1 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006282/0.2644, allocations: 496 kB / 380.6 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.2648, allocations: 140.1 kB / 380.7 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.2649, allocations: 50.2 kB / 380.8 MB, free: 40.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.2649, allocations: 2.375 kB / 380.8 MB, free: 40.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002239/0.2651, allocations: 116.8 kB / 380.9 MB, free: 40.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.804e-06/0.2652, allocations: 0 / 380.9 MB, free: 40.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004769/0.2656, allocations: 209.4 kB / 381.1 MB, free: 40.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.2657, allocations: 113.4 kB / 381.2 MB, free: 40.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004673/0.2662, allocations: 428.2 kB / 381.6 MB, free: 40.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.2662, allocations: 31.17 kB / 381.7 MB, free: 40.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.326e-05/0.2663, allocations: 173.1 kB / 381.8 MB, free: 39.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.2663, allocations: 32.88 kB / 381.9 MB, free: 39.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-06/0.2663, allocations: 5.531 kB / 381.9 MB, free: 39.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.021e-05/0.2664, allocations: 343.7 kB / 382.2 MB, free: 39.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.2665, allocations: 45.64 kB / 382.2 MB, free: 39.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.2667, allocations: 107.3 kB / 382.3 MB, free: 39.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.2668, allocations: 39.56 kB / 382.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2668, allocations: 1.156 kB / 382.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003021/0.2671, allocations: 186.7 kB / 382.6 MB, free: 39.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.2671, allocations: 5.312 kB / 382.6 MB, free: 39.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2672, allocations: 0.9062 kB / 382.6 MB, free: 39.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2672, allocations: 1.656 kB / 382.6 MB, free: 39.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.2673, allocations: 26.42 kB / 382.6 MB, free: 39.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.2673, allocations: 1.156 kB / 382.6 MB, free: 39.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.2674, allocations: 25.3 kB / 382.6 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.2675, allocations: 4.219 kB / 382.6 MB, free: 39.31 MB / 298.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.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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.0001397/0.2676, allocations: 177.4 kB / 382.8 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.2677, allocations: 34.02 kB / 382.8 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.778e-05/0.2677, allocations: 39.66 kB / 382.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2677, allocations: 1.031 kB / 382.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2677, allocations: 1.219 kB / 382.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2678, allocations: 0 / 382.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.268, allocations: 297.3 kB / 383.2 MB, free: 38.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.268, allocations: 0 / 383.2 MB, free: 38.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.912e-05/0.2681, allocations: 14.44 kB / 383.2 MB, free: 38.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.2681, allocations: 5.109 kB / 383.2 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.2681, allocations: 6.656 kB / 383.2 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2681, allocations: 0 / 383.2 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2681, allocations: 5.141 kB / 383.2 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.2684, allocations: 201.7 kB / 383.4 MB, free: 38.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.278e-05/0.2685, allocations: 110.7 kB / 383.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.2685, allocations: 14.39 kB / 383.5 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.076e-05/0.2686, allocations: 14.33 kB / 383.5 MB, free: 38.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.757e-05/0.2687, allocations: 14.02 kB / 383.5 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.2687, allocations: 5.844 kB / 383.5 MB, free: 38.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003164/0.269, allocations: 313.3 kB / 383.9 MB, free: 38.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2691, allocations: 0 / 383.9 MB, free: 38.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002861/0.2693, allocations: 48.25 kB / 383.9 MB, free: 38.34 MB / 298.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.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.000901/0.2703, allocations: 431.2 kB / 384.3 MB, free: 37.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002837/0.2705, allocations: 124.2 kB / 384.4 MB, free: 37.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2706, allocations: 0 / 384.4 MB, free: 37.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.2707, allocations: 57.73 kB / 384.5 MB, free: 37.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.2711, allocations: 73.77 kB / 384.6 MB, free: 37.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007952/0.2719, allocations: 0.5562 MB / 385.1 MB, free: 37.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.2722, allocations: 0.7797 MB / 385.9 MB, free: 36.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.857e-05/0.2722, allocations: 28.45 kB / 385.9 MB, free: 36.7 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2722, allocations: 0 / 385.9 MB, free: 36.7 MB / 298.7 MB Notification: Performance of Templates: time 0.00536/0.2776, allocations: 4.134 MB / 390.1 MB, free: 32.9 MB / 298.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/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_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches