Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001367/0.001367, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2704, allocations: 50.55 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002857/0.2733, allocations: 1.832 MB / 411.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2745, allocations: 0.701 MB / 412.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2746, allocations: 4 kB / 412.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.2748, allocations: 27.67 kB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.2749, allocations: 35.66 kB / 412.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.2753, allocations: 91.77 kB / 412.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.2755, allocations: 183.4 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.2757, allocations: 74.62 kB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.2759, allocations: 75.64 kB / 412.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.2761, allocations: 87.61 kB / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.2761, allocations: 12 kB / 413 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.36e-05/0.2762, allocations: 27.98 kB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.745e-05/0.2763, allocations: 51.83 kB / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.376e-05/0.2764, allocations: 87.47 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002586/0.2766, allocations: 202.7 kB / 413.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2766, allocations: 0 / 413.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2766, allocations: 0 / 413.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2767, allocations: 0 / 413.4 MB, free: 14.08 MB / 334.1 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.000905/0.2776, allocations: 0.504 MB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.2776, allocations: 12.03 kB / 413.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.2778, allocations: 36.64 kB / 413.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.2781, allocations: 249.5 kB / 414.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.2781, allocations: 12.38 kB / 414.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.2782, allocations: 20.38 kB / 414.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004035/0.2786, allocations: 213.5 kB / 414.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2786, allocations: 0 / 414.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.2786, allocations: 12 kB / 414.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.2786, allocations: 4 kB / 414.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003206/0.279, allocations: 143.8 kB / 414.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.28, allocations: 0.7817 MB / 415.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006021/0.2806, allocations: 186.7 kB / 415.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.2808, allocations: 56.83 kB / 415.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.2808, allocations: 4 kB / 415.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.2811, allocations: 152.9 kB / 415.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.2811, allocations: 0 / 415.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005681/0.2817, allocations: 249.2 kB / 416 MB, free: 11.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.2817, allocations: 81.11 kB / 416.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.2819, allocations: 226.9 kB / 416.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.282, allocations: 29.7 kB / 416.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.2821, allocations: 144.3 kB / 416.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.365e-05/0.2821, allocations: 43.48 kB / 416.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.876e-05/0.2822, allocations: 57.69 kB / 416.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2823, allocations: 330.8 kB / 416.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.2825, allocations: 67.95 kB / 417 MB, free: 10.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.2827, allocations: 136.5 kB / 417.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.2831, allocations: 212.4 kB / 417.3 MB, free: 9.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2831, allocations: 0 / 417.3 MB, free: 9.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004471/0.2835, allocations: 257.1 kB / 417.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2835, allocations: 8 kB / 417.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2836, allocations: 4 kB / 417.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2836, allocations: 4 kB / 417.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.2838, allocations: 35.92 kB / 417.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.2838, allocations: 7.984 kB / 417.6 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.284, allocations: 31.83 kB / 417.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.284, allocations: 7.938 kB / 417.7 MB, free: 9.496 MB / 334.1 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 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.2841, allocations: 156.1 kB / 417.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.2842, allocations: 15.81 kB / 417.8 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.2844, allocations: 135 kB / 418 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.2844, allocations: 0 / 418 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.2844, allocations: 4 kB / 418 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2844, allocations: 0 / 418 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006113/0.2851, allocations: 494.5 kB / 418.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2851, allocations: 0 / 418.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.2852, allocations: 16.3 kB / 418.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.2852, allocations: 7.984 kB / 418.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2852, allocations: 0 / 418.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.2852, allocations: 7.938 kB / 418.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2852, allocations: 4 kB / 418.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004119/0.2857, allocations: 292 kB / 418.8 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.2857, allocations: 96.86 kB / 418.9 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.2858, allocations: 4 kB / 418.9 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.286, allocations: 23.91 kB / 418.9 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.536e-05/0.286, allocations: 15.98 kB / 418.9 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.2861, allocations: 7.984 kB / 418.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001201/0.2862, allocations: 144.7 kB / 419 MB, free: 7.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2862, allocations: 4 kB / 419 MB, free: 7.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.2865, allocations: 36 kB / 419.1 MB, free: 7.953 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001588/0.2867, allocations: 119.1 kB / 419.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003925/0.2871, allocations: 168.3 kB / 419.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2871, allocations: 0 / 419.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.2873, allocations: 79.89 kB / 419.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.2876, allocations: 35.7 kB / 419.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007201/0.2884, allocations: 395.5 kB / 419.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.2887, allocations: 0.732 MB / 420.6 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.2888, allocations: 27.44 kB / 420.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2888, allocations: 0 / 420.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of Templates: time 0.004268/0.2931, allocations: 2.463 MB / 423.1 MB, free: 3.891 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches