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.0009442/0.0009443, allocations: 202.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 226.6 MB / 244.7 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007129/0.0007127, allocations: 98.97 kB / 296.8 MB, free: 6.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002244/0.0002244, allocations: 4 kB / 356.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.188, allocations: 51.3 MB / 408 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001468/0.1895, allocations: 1.501 MB / 409.5 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007474/0.1902, allocations: 0.6184 MB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.537e-05/0.1903, allocations: 4 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.1905, allocations: 19.78 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.827e-05/0.1906, allocations: 26.55 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.1908, allocations: 71.86 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.1909, allocations: 151.2 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.1911, allocations: 68.84 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1912, allocations: 68.84 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.915e-05/0.1913, allocations: 67.61 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.1914, allocations: 4.969 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.926e-05/0.1914, allocations: 16 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.314e-05/0.1915, allocations: 35.84 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.143e-05/0.1915, allocations: 97.03 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.1917, allocations: 120.7 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1917, allocations: 0 / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1917, allocations: 0 / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1917, allocations: 3.938 kB / 410.9 MB, free: 24.88 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.0006914/0.1924, allocations: 496 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.1924, allocations: 12.03 kB / 411.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.1926, allocations: 36.67 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.1928, allocations: 235.8 kB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.1928, allocations: 16.38 kB / 411.7 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.669e-05/0.1928, allocations: 20.36 kB / 411.7 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.1931, allocations: 206.5 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1932, allocations: 3.984 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.1932, allocations: 11.98 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.1932, allocations: 4 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.1935, allocations: 147.7 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008021/0.1943, allocations: 0.7972 MB / 412.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.1948, allocations: 214.6 kB / 413.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.195, allocations: 64.81 kB / 413.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.195, allocations: 8 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.1952, allocations: 149 kB / 413.3 MB, free: 22.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.1953, allocations: 0 / 413.3 MB, free: 22.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005235/0.1958, allocations: 253.3 kB / 413.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.1958, allocations: 85.11 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.196, allocations: 218.8 kB / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.196, allocations: 29.7 kB / 413.9 MB, free: 21.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.1961, allocations: 152.2 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.1961, allocations: 19.72 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.1961, allocations: 8 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.167e-05/0.1962, allocations: 334.8 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.1963, allocations: 71.95 kB / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.1965, allocations: 144.4 kB / 414.6 MB, free: 20.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.1968, allocations: 220.4 kB / 414.8 MB, free: 20.67 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1968, allocations: 0 / 414.8 MB, free: 20.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003742/0.1972, allocations: 260.2 kB / 415 MB, free: 20.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1972, allocations: 4 kB / 415 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1972, allocations: 4 kB / 415.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1972, allocations: 3.984 kB / 415.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.1974, allocations: 43.86 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.1974, allocations: 4 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.1976, allocations: 44 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.1976, allocations: 11.94 kB / 415.2 MB, free: 20.3 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 9.746e-05/0.1977, allocations: 152 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.1977, allocations: 19.72 kB / 415.3 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000203/0.1979, allocations: 131.3 kB / 415.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1979, allocations: 8 kB / 415.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1979, allocations: 0 / 415.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.198, allocations: 0 / 415.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.1984, allocations: 478.3 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1984, allocations: 0 / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.1985, allocations: 27.91 kB / 416 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1985, allocations: 4 kB / 416 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.1986, allocations: 11.98 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1986, allocations: 3.938 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1986, allocations: 0 / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003375/0.1989, allocations: 300 kB / 416.3 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.199, allocations: 96.86 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.199, allocations: 3.984 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.1992, allocations: 27.92 kB / 416.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/0.1992, allocations: 19.97 kB / 416.4 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.1993, allocations: 7.984 kB / 416.4 MB, free: 18.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.214e-05/0.1993, allocations: 152.4 kB / 416.6 MB, free: 18.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1994, allocations: 0 / 416.6 MB, free: 18.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000272/0.1996, allocations: 36 kB / 416.6 MB, free: 18.74 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.0001304/0.1998, allocations: 103.7 kB / 416.7 MB, free: 18.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000343/0.2001, allocations: 177.4 kB / 416.9 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2001, allocations: 3.938 kB / 416.9 MB, free: 18.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.2003, allocations: 83.91 kB / 417 MB, free: 18.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.2006, allocations: 31.91 kB / 417 MB, free: 18.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005384/0.2012, allocations: 433.4 kB / 417.4 MB, free: 17.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.2013, allocations: 0.7362 MB / 418.2 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.055e-05/0.2014, allocations: 19.44 kB / 418.2 MB, free: 17.11 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2014, allocations: 0 / 418.2 MB, free: 17.11 MB / 298.7 MB Notification: Performance of Templates: time 0.003139/0.2046, allocations: 2.416 MB / 420.6 MB, free: 14.7 MB / 298.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/jenkins/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