Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001069/0.001069, allocations: 187 kB / 17.92 MB, free: 3.855 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.155/1.155, allocations: 205.1 MB / 223.8 MB, free: 8.48 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.0009047/0.0009048, allocations: 98.28 kB / 271.2 MB, free: 8.449 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007568/0.0007568, allocations: 43.94 kB / 327.2 MB, free: 352 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1878, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00254/0.1904, allocations: 1.867 MB / 375.7 MB, free: 44.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008364/0.1912, allocations: 0.6581 MB / 376.3 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.57e-05/0.1913, allocations: 3.438 kB / 376.3 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.1914, allocations: 26.03 kB / 376.4 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.73e-05/0.1916, allocations: 23.2 kB / 376.4 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002195/0.1918, allocations: 76.2 kB / 376.5 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.192, allocations: 166.9 kB / 376.6 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.1921, allocations: 72.41 kB / 376.7 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.175e-05/0.1922, allocations: 61.66 kB / 376.8 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.1923, allocations: 91.91 kB / 376.8 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.025e-05/0.1924, allocations: 13.91 kB / 376.9 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.564e-05/0.1924, allocations: 15.75 kB / 376.9 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.011e-05/0.1925, allocations: 42.56 kB / 376.9 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.034e-05/0.1926, allocations: 79.75 kB / 377 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.1928, allocations: 170.5 kB / 377.2 MB, free: 43.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1928, allocations: 1.25 kB / 377.2 MB, free: 43.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1928, allocations: 0 / 377.2 MB, free: 43.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1928, allocations: 0 / 377.2 MB, free: 43.29 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.0006949/0.1935, allocations: 0.5089 MB / 377.7 MB, free: 42.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.1935, allocations: 9.281 kB / 377.7 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.1936, allocations: 23.16 kB / 377.7 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.1938, allocations: 237.5 kB / 377.9 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.1938, allocations: 15.06 kB / 377.9 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.1938, allocations: 15.16 kB / 378 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.1941, allocations: 221.6 kB / 378.2 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1942, allocations: 0 / 378.2 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.1942, allocations: 10.64 kB / 378.2 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.1942, allocations: 7.875 kB / 378.2 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.1945, allocations: 137.6 kB / 378.3 MB, free: 42.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007948/0.1953, allocations: 0.7863 MB / 379.1 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005427/0.1959, allocations: 188.3 kB / 379.3 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.196, allocations: 60.78 kB / 379.4 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.196, allocations: 10.12 kB / 379.4 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.1962, allocations: 147.2 kB / 379.5 MB, free: 41.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.1963, allocations: 0 / 379.5 MB, free: 41.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004808/0.1967, allocations: 244.3 kB / 379.8 MB, free: 41.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.1968, allocations: 88.36 kB / 379.8 MB, free: 41.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.1969, allocations: 217.2 kB / 380 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.197, allocations: 31.77 kB / 380.1 MB, free: 40.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.532e-05/0.197, allocations: 151.4 kB / 380.2 MB, free: 40.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.1971, allocations: 26.31 kB / 380.3 MB, free: 40.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.688e-05/0.1971, allocations: 59.31 kB / 380.3 MB, free: 40.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.369e-05/0.1972, allocations: 336.2 kB / 380.6 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.1973, allocations: 72.73 kB / 380.7 MB, free: 40.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.1975, allocations: 133.4 kB / 380.8 MB, free: 40.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.1977, allocations: 207.1 kB / 381 MB, free: 40.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1978, allocations: 8.938 kB / 381.1 MB, free: 40.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003725/0.1981, allocations: 245.9 kB / 381.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.1982, allocations: 6.156 kB / 381.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1982, allocations: 2.469 kB / 381.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.1982, allocations: 3.219 kB / 381.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.1983, allocations: 44.19 kB / 381.3 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1984, allocations: 7.219 kB / 381.4 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.1985, allocations: 37.14 kB / 381.4 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1985, allocations: 16.14 kB / 381.4 MB, free: 39.88 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 (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 9.007e-05/0.1986, allocations: 140.1 kB / 381.5 MB, free: 39.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.1987, allocations: 20.61 kB / 381.6 MB, free: 39.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000206/0.1989, allocations: 134.9 kB / 381.7 MB, free: 39.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1989, allocations: 1.344 kB / 381.7 MB, free: 39.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.1989, allocations: 5.203 kB / 381.7 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1989, allocations: 1.219 kB / 381.7 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004567/0.1994, allocations: 478.3 kB / 382.2 MB, free: 39.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1994, allocations: 0 / 382.2 MB, free: 39.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.1995, allocations: 21.11 kB / 382.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1995, allocations: 1.375 kB / 382.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1995, allocations: 14.89 kB / 382.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1995, allocations: 3.938 kB / 382.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1995, allocations: 1.219 kB / 382.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005893/0.2001, allocations: 0.9272 MB / 383.1 MB, free: 38.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.324e-05/0.2002, allocations: 102.7 kB / 383.2 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.2002, allocations: 1.531 kB / 383.2 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.2004, allocations: 16.77 kB / 383.3 MB, free: 38.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.369e-05/0.2004, allocations: 25.36 kB / 383.3 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.2005, allocations: 12.73 kB / 383.3 MB, free: 38.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.562e-05/0.2006, allocations: 143.9 kB / 383.4 MB, free: 38.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2006, allocations: 0 / 383.4 MB, free: 38.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000359/0.2009, allocations: 39.84 kB / 383.5 MB, free: 38.09 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.842e-05/0.201, allocations: 115.4 kB / 383.6 MB, free: 37.99 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.2014, allocations: 172.7 kB / 383.8 MB, free: 37.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2014, allocations: 0 / 383.8 MB, free: 37.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.2015, allocations: 77.42 kB / 383.8 MB, free: 37.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.2018, allocations: 40.69 kB / 383.9 MB, free: 37.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.2024, allocations: 0.5459 MB / 384.4 MB, free: 37.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.2026, allocations: 0.7378 MB / 385.2 MB, free: 36.69 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.396e-05/0.2027, allocations: 30.34 kB / 385.2 MB, free: 36.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.497e-05/0.2027, allocations: 30.58 kB / 385.2 MB, free: 36.66 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2027, allocations: 0 / 385.2 MB, free: 36.66 MB / 298.7 MB Notification: Performance of Templates: time 0.003942/0.2067, allocations: 1.938 MB / 387.2 MB, free: 35.65 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches