Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 199.3 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007487/0.0007488, allocations: 100.6 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001997/0.0001998, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1747, allocations: 51.28 MB / 408.6 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08195/0.2567, allocations: 78.84 MB / 487.5 MB, free: 12.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.2569, allocations: 67.97 kB / 487.6 MB, free: 12.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008355/0.2653, allocations: 2.966 MB / 490.5 MB, free: 9.734 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2653, allocations: 4 kB / 490.5 MB, free: 9.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.2654, allocations: 4 kB / 490.5 MB, free: 9.727 MB / 362.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.0006882/0.266, allocations: 0.4927 MB / 491 MB, free: 9.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.2661, allocations: 12.03 kB / 491 MB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.2662, allocations: 36.64 kB / 491.1 MB, free: 9.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.2665, allocations: 243.8 kB / 491.3 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.2665, allocations: 8.375 kB / 491.3 MB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.857e-05/0.2666, allocations: 16.38 kB / 491.3 MB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/0.2669, allocations: 210.7 kB / 491.5 MB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.267, allocations: 4.125 kB / 491.5 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.267, allocations: 15.88 kB / 491.6 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.267, allocations: 7.984 kB / 491.6 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003137/0.2673, allocations: 155.7 kB / 491.7 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.2684, allocations: 0.7934 MB / 492.5 MB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005824/0.269, allocations: 210.6 kB / 492.7 MB, free: 7.352 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.2691, allocations: 64.81 kB / 492.8 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.2692, allocations: 4 kB / 492.8 MB, free: 7.281 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/0.2695, allocations: 149 kB / 492.9 MB, free: 7.117 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.2695, allocations: 0 / 492.9 MB, free: 7.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005959/0.2701, allocations: 253.5 kB / 493.2 MB, free: 6.863 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.2701, allocations: 81.09 kB / 493.3 MB, free: 6.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.2703, allocations: 214.8 kB / 493.5 MB, free: 6.547 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.2703, allocations: 29.7 kB / 493.5 MB, free: 6.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.471e-05/0.2704, allocations: 144.3 kB / 493.6 MB, free: 6.367 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.413e-05/0.2705, allocations: 35.55 kB / 493.7 MB, free: 6.332 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.295e-05/0.2705, allocations: 4 kB / 493.7 MB, free: 6.328 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.2706, allocations: 330.8 kB / 494 MB, free: 5.996 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.2708, allocations: 75.89 kB / 494.1 MB, free: 5.922 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.271, allocations: 144.5 kB / 494.2 MB, free: 5.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003465/0.2713, allocations: 218.4 kB / 494.4 MB, free: 5.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2714, allocations: 0 / 494.4 MB, free: 5.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004587/0.2718, allocations: 253.1 kB / 494.7 MB, free: 5.254 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.2718, allocations: 7.984 kB / 494.7 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2719, allocations: 7.938 kB / 494.7 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.2719, allocations: 4 kB / 494.7 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.2721, allocations: 32.23 kB / 494.7 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.2721, allocations: 11.94 kB / 494.7 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.2723, allocations: 39.81 kB / 494.8 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.2723, allocations: 12 kB / 494.8 MB, free: 5.141 MB / 362.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.0001414/0.2724, allocations: 148.3 kB / 494.9 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.2725, allocations: 15.81 kB / 494.9 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.2727, allocations: 138.9 kB / 495.1 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2727, allocations: 4 kB / 495.1 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2728, allocations: 0 / 495.1 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2728, allocations: 3.938 kB / 495.1 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006021/0.2734, allocations: 482.2 kB / 495.6 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2734, allocations: 0 / 495.6 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.2735, allocations: 27.98 kB / 495.6 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2735, allocations: 0 / 495.6 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.2736, allocations: 4 kB / 495.6 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2736, allocations: 0 / 495.6 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.2736, allocations: 7.922 kB / 495.6 MB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004147/0.274, allocations: 296 kB / 495.9 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-05/0.2741, allocations: 92.91 kB / 496 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.2741, allocations: 8 kB / 496 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.2743, allocations: 20.05 kB / 496 MB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.721e-05/0.2744, allocations: 35.89 kB / 496 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.2744, allocations: 8 kB / 496 MB, free: 3.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001209/0.2745, allocations: 140.4 kB / 496.2 MB, free: 3.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2745, allocations: 0 / 496.2 MB, free: 3.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003148/0.2748, allocations: 55.84 kB / 496.2 MB, free: 3.578 MB / 362.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.00016/0.275, allocations: 111.7 kB / 496.3 MB, free: 3.461 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003907/0.2754, allocations: 183.1 kB / 496.5 MB, free: 3.285 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2754, allocations: 0 / 496.5 MB, free: 3.285 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.2756, allocations: 83.89 kB / 496.6 MB, free: 3.203 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.276, allocations: 30.06 kB / 496.6 MB, free: 3.176 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007006/0.2767, allocations: 433.2 kB / 497.1 MB, free: 2.719 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.277, allocations: 0.7439 MB / 497.8 MB, free: 1.949 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.141e-05/0.2771, allocations: 23.42 kB / 497.8 MB, free: 1.926 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2771, allocations: 0 / 497.8 MB, free: 1.926 MB / 362.7 MB Notification: Performance of Templates: time 0.004133/0.2812, allocations: 2.398 MB / 0.4885 GB, free: 15.54 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches