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/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_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/Complex trunk/package.mo): time 0.001608/0.001608, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009686/0.0009685, allocations: 113.2 kB / 296.7 MB, free: 6.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009479/0.000948, allocations: 52.06 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2248, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002599/0.2274, allocations: 1.884 MB / 408.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009086/0.2283, allocations: 0.6544 MB / 409.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.908e-05/0.2284, allocations: 4 kB / 409.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.2286, allocations: 19.8 kB / 409.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.2287, allocations: 31.72 kB / 409.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.229, allocations: 83.86 kB / 409.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.2291, allocations: 163.4 kB / 409.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2293, allocations: 74.64 kB / 409.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.2294, allocations: 75.62 kB / 410 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.2296, allocations: 83.59 kB / 410.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.2296, allocations: 8 kB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.676e-05/0.2297, allocations: 20 kB / 410.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.79e-05/0.2297, allocations: 35.84 kB / 410.2 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.342e-05/0.2298, allocations: 83.47 kB / 410.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.23, allocations: 176.9 kB / 410.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.23, allocations: 4 kB / 410.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.23, allocations: 0 / 410.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.23, allocations: 0 / 410.4 MB, free: 24.42 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.0007657/0.2308, allocations: 0.4986 MB / 410.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.2308, allocations: 12.03 kB / 410.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.231, allocations: 32.64 kB / 411 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.2312, allocations: 235.9 kB / 411.2 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.2312, allocations: 16.38 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.2312, allocations: 16.38 kB / 411.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.2316, allocations: 210.2 kB / 411.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2316, allocations: 7.938 kB / 411.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.2316, allocations: 7.984 kB / 411.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.2316, allocations: 15.98 kB / 411.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.2319, allocations: 139.7 kB / 411.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008222/0.2327, allocations: 0.7778 MB / 412.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005703/0.2333, allocations: 186.7 kB / 412.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.2334, allocations: 64.81 kB / 412.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.2335, allocations: 4 kB / 412.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.2337, allocations: 167.3 kB / 412.8 MB, free: 21.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.2337, allocations: 0 / 412.8 MB, free: 21.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004923/0.2342, allocations: 237.6 kB / 413 MB, free: 21.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.2343, allocations: 85.05 kB / 413.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.2344, allocations: 214.9 kB / 413.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.2344, allocations: 33.8 kB / 413.4 MB, free: 21.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.452e-05/0.2345, allocations: 148.1 kB / 413.5 MB, free: 21.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/0.2345, allocations: 31.61 kB / 413.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.571e-05/0.2346, allocations: 57.69 kB / 413.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.385e-05/0.2347, allocations: 330.8 kB / 413.9 MB, free: 20.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.2348, allocations: 71.94 kB / 414 MB, free: 20.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.235, allocations: 130.1 kB / 414.1 MB, free: 20.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002582/0.2352, allocations: 208.4 kB / 414.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2352, allocations: 0 / 414.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003597/0.2356, allocations: 261 kB / 414.6 MB, free: 19.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2356, allocations: 4 kB / 414.6 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2356, allocations: 4 kB / 414.6 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.2357, allocations: 4 kB / 414.6 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.2358, allocations: 39.91 kB / 414.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2358, allocations: 4 kB / 414.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.236, allocations: 40.02 kB / 414.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.236, allocations: 11.94 kB / 414.7 MB, free: 19.86 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 0.0001058/0.2361, allocations: 148 kB / 414.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.2362, allocations: 15.81 kB / 414.8 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.2364, allocations: 135 kB / 415 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2364, allocations: 0 / 415 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2364, allocations: 4 kB / 415 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2364, allocations: 7.984 kB / 415 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004601/0.2369, allocations: 478.5 kB / 415.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2369, allocations: 0 / 415.4 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.237, allocations: 19.98 kB / 415.5 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.237, allocations: 3.984 kB / 415.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.2371, allocations: 7.938 kB / 415.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2371, allocations: 7.922 kB / 415.5 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2371, allocations: 0 / 415.5 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005931/0.2377, allocations: 0.9354 MB / 416.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.6e-05/0.2377, allocations: 92.86 kB / 416.5 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.2378, allocations: 7.984 kB / 416.5 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.2379, allocations: 19.98 kB / 416.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.294e-05/0.238, allocations: 19.97 kB / 416.5 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.238, allocations: 7.984 kB / 416.6 MB, free: 17.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.155e-05/0.2381, allocations: 152.3 kB / 416.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2381, allocations: 0 / 416.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003617/0.2385, allocations: 39.91 kB / 416.7 MB, free: 17.62 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 0.0001301/0.2386, allocations: 111.2 kB / 416.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000321/0.2389, allocations: 168.4 kB / 417 MB, free: 17.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.239, allocations: 0 / 417 MB, free: 17.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.2391, allocations: 83.89 kB / 417.1 MB, free: 17.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.2394, allocations: 38.59 kB / 417.1 MB, free: 17.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000672/0.2401, allocations: 0.5452 MB / 417.7 MB, free: 16.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.2403, allocations: 0.7401 MB / 418.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.352e-05/0.2404, allocations: 33.53 kB / 418.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.284e-05/0.2405, allocations: 19.42 kB / 418.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2405, allocations: 0 / 418.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of Templates: time 0.004071/0.2445, allocations: 1.955 MB / 420.4 MB, free: 13.88 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches