Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008637/0.0008637, allocations: 170.5 kB / 16.72 MB, free: 5.051 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.497/1.497, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008422/0.0008417, allocations: 86.38 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003858, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.265, allocations: 47.58 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001923/0.267, allocations: 1.482 MB / 376.6 MB, free: 44.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009431/0.2679, allocations: 0.6262 MB / 377.2 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.268, allocations: 3.094 kB / 377.2 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.2682, allocations: 17.86 kB / 377.2 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.2683, allocations: 22.94 kB / 377.2 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.2686, allocations: 72.62 kB / 377.3 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.2688, allocations: 157.8 kB / 377.5 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.269, allocations: 72.41 kB / 377.5 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.2691, allocations: 57.92 kB / 377.6 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.2692, allocations: 66.86 kB / 377.6 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.2693, allocations: 5 kB / 377.7 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.479e-05/0.2693, allocations: 17.36 kB / 377.7 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.813e-05/0.2694, allocations: 33.08 kB / 377.7 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.76e-05/0.2695, allocations: 91.34 kB / 377.8 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.2696, allocations: 118.1 kB / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2696, allocations: 0 / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.2697, allocations: 0 / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.2697, allocations: 4 kB / 377.9 MB, free: 43.27 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007159/0.2704, allocations: 486.8 kB / 378.4 MB, free: 42.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.2704, allocations: 9.062 kB / 378.4 MB, free: 42.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.329e-05/0.2705, allocations: 28.19 kB / 378.4 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.2707, allocations: 241.3 kB / 378.7 MB, free: 42.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.2707, allocations: 18.81 kB / 378.7 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.2708, allocations: 19.22 kB / 378.7 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003647/0.2712, allocations: 219 kB / 378.9 MB, free: 42.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.2712, allocations: 5.094 kB / 378.9 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.2712, allocations: 6.281 kB / 378.9 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.2712, allocations: 8.094 kB / 378.9 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003141/0.2715, allocations: 147.9 kB / 379.1 MB, free: 42.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008823/0.2724, allocations: 0.7981 MB / 379.9 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005787/0.273, allocations: 205.2 kB / 380.1 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.2732, allocations: 73.31 kB / 380.1 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.2732, allocations: 5.281 kB / 380.1 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.2735, allocations: 146.8 kB / 380.3 MB, free: 41.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.2735, allocations: 5.375 kB / 380.3 MB, free: 41.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005565/0.2741, allocations: 254 kB / 380.5 MB, free: 41.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.2741, allocations: 87.17 kB / 380.6 MB, free: 41.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.2743, allocations: 220.7 kB / 380.8 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.2743, allocations: 35.52 kB / 380.9 MB, free: 40.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.652e-05/0.2744, allocations: 142.9 kB / 381 MB, free: 40.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.2744, allocations: 25.3 kB / 381 MB, free: 40.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.133e-05/0.2744, allocations: 5.125 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.218e-05/0.2745, allocations: 336.2 kB / 381.4 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.2747, allocations: 68.3 kB / 381.4 MB, free: 40.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.2748, allocations: 140 kB / 381.6 MB, free: 40.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.2752, allocations: 218.1 kB / 381.8 MB, free: 40.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2752, allocations: 0 / 381.8 MB, free: 40.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004268/0.2756, allocations: 267 kB / 382.1 MB, free: 39.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.2756, allocations: 4.75 kB / 382.1 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2756, allocations: 3.375 kB / 382.1 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2757, allocations: 3.656 kB / 382.1 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.2758, allocations: 40.16 kB / 382.1 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2759, allocations: 4.219 kB / 382.1 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.276, allocations: 42.7 kB / 382.2 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.2761, allocations: 15.86 kB / 382.2 MB, free: 39.92 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001113/0.2762, allocations: 149.3 kB / 382.3 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.2762, allocations: 24.2 kB / 382.3 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002324/0.2764, allocations: 129.4 kB / 382.5 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2765, allocations: 2.531 kB / 382.5 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2765, allocations: 5.453 kB / 382.5 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2765, allocations: 4 kB / 382.5 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005193/0.277, allocations: 477.8 kB / 382.9 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.277, allocations: 0 / 382.9 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.2772, allocations: 19.89 kB / 383 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.2772, allocations: 5.344 kB / 383 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.2772, allocations: 9.047 kB / 383 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2772, allocations: 9.375 kB / 383 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2772, allocations: 1.219 kB / 383 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.2776, allocations: 294.8 kB / 383.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.2777, allocations: 98.86 kB / 383.4 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.2777, allocations: 1.688 kB / 383.4 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.2779, allocations: 30.03 kB / 383.4 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.2779, allocations: 25.09 kB / 383.4 MB, free: 38.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.278, allocations: 4.094 kB / 383.4 MB, free: 38.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001073/0.2781, allocations: 155.4 kB / 383.6 MB, free: 38.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2781, allocations: 0 / 383.6 MB, free: 38.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002824/0.2784, allocations: 39.88 kB / 383.6 MB, free: 38.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001517/0.2785, allocations: 106 kB / 383.7 MB, free: 38.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003885/0.2789, allocations: 172.4 kB / 383.9 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2789, allocations: 1.094 kB / 383.9 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.2791, allocations: 88.94 kB / 384 MB, free: 38.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.2795, allocations: 32.5 kB / 384 MB, free: 38.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006578/0.2801, allocations: 444.1 kB / 384.4 MB, free: 38.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.2803, allocations: 0.7274 MB / 385.2 MB, free: 37.47 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.573e-05/0.2804, allocations: 21.92 kB / 385.2 MB, free: 37.46 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2804, allocations: 4.938 kB / 385.2 MB, free: 37.46 MB / 298.7 MB Notification: Performance of Templates: time 0.003679/0.2841, allocations: 2.396 MB / 387.6 MB, free: 35.71 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches