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.0009992/0.0009992, allocations: 90.75 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 197.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.129/1.129, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001794/0.0001795, allocations: 11.98 kB / 307.7 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0737/0.07389, allocations: 51.53 MB / 359.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001625/0.07555, allocations: 1.54 MB / 360.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009219/0.07648, allocations: 0.6779 MB / 361.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.369e-05/0.07657, allocations: 7.938 kB / 361.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.138e-05/0.07667, allocations: 19.73 kB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.923e-05/0.07677, allocations: 23.84 kB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.07699, allocations: 83.86 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.07717, allocations: 163.4 kB / 361.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.07732, allocations: 74.61 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.07745, allocations: 59.66 kB / 361.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.07757, allocations: 79.61 kB / 362 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.105e-05/0.0776, allocations: 4 kB / 362 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.567e-05/0.07766, allocations: 16 kB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.071e-05/0.07772, allocations: 35.84 kB / 362 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.069e-05/0.0778, allocations: 101.2 kB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.07798, allocations: 167.6 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.07799, allocations: 4 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.07799, allocations: 0 / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.456e-06/0.078, allocations: 0 / 362.3 MB, free: 10.24 MB / 302.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.0007068/0.07871, allocations: 498.6 kB / 362.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.767e-05/0.07875, allocations: 8.031 kB / 362.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.07889, allocations: 36.64 kB / 362.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.07911, allocations: 245.5 kB / 363 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.07914, allocations: 16.12 kB / 363.1 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.07917, allocations: 16.38 kB / 363.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.07951, allocations: 209.9 kB / 363.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.07953, allocations: 0 / 363.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.07955, allocations: 7.984 kB / 363.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.07957, allocations: 15.98 kB / 363.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00029/0.07987, allocations: 147.7 kB / 363.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009026/0.08078, allocations: 0.7934 MB / 364.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005586/0.08135, allocations: 210.6 kB / 364.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.0815, allocations: 72.81 kB / 364.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.08153, allocations: 7.984 kB / 364.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/0.08177, allocations: 144.9 kB / 364.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.08178, allocations: 4 kB / 364.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005162/0.0823, allocations: 257.5 kB / 364.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.08235, allocations: 81.2 kB / 365 MB, free: 7.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.08253, allocations: 230.9 kB / 365.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.08255, allocations: 29.7 kB / 365.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.08264, allocations: 144.3 kB / 365.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.08267, allocations: 35.56 kB / 365.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-05/0.08272, allocations: 37.69 kB / 365.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.08282, allocations: 330.8 kB / 365.8 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.08297, allocations: 71.95 kB / 365.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.08316, allocations: 145.6 kB / 366 MB, free: 6.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003159/0.08348, allocations: 224.3 kB / 366.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.08349, allocations: 4 kB / 366.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004021/0.0839, allocations: 253.3 kB / 366.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.08392, allocations: 8.031 kB / 366.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.08393, allocations: 4 kB / 366.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.08394, allocations: 4 kB / 366.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.0841, allocations: 36.23 kB / 366.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.08411, allocations: 7.984 kB / 366.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.08428, allocations: 39.83 kB / 366.6 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.08431, allocations: 19.94 kB / 366.6 MB, free: 5.59 MB / 302.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.0001094/0.08442, allocations: 148.6 kB / 366.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.08445, allocations: 15.81 kB / 366.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.08467, allocations: 135 kB / 366.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.08469, allocations: 4 kB / 366.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.0847, allocations: 0 / 366.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.0847, allocations: 0 / 366.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.08521, allocations: 494.1 kB / 367.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.08522, allocations: 3.938 kB / 367.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.08533, allocations: 23.92 kB / 367.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.08534, allocations: 3.984 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.08536, allocations: 4 kB / 367.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.08537, allocations: 4.125 kB / 367.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.08537, allocations: 0 / 367.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003652/0.08575, allocations: 302.8 kB / 367.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.0858, allocations: 100.8 kB / 367.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.08583, allocations: 4 kB / 367.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.086, allocations: 31.91 kB / 367.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.08606, allocations: 19.97 kB / 367.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.08609, allocations: 8 kB / 367.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.0862, allocations: 140.7 kB / 368 MB, free: 4.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0862, allocations: 0 / 368 MB, free: 4.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.08647, allocations: 40 kB / 368 MB, free: 4.031 MB / 302.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.0001186/0.08659, allocations: 111.2 kB / 368.2 MB, free: 3.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.08694, allocations: 176.2 kB / 368.3 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.08695, allocations: 4 kB / 368.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.08712, allocations: 83.89 kB / 368.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.08743, allocations: 23.98 kB / 368.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000561/0.088, allocations: 423.6 kB / 368.8 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.08826, allocations: 0.7284 MB / 369.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.59e-05/0.08836, allocations: 45.45 kB / 369.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.792e-05/0.08841, allocations: 15.44 kB / 369.6 MB, free: 2.375 MB / 302.1 MB Notification: Performance of SimCode: time 1.91e-07/0.08842, allocations: 0 / 369.6 MB, free: 2.375 MB / 302.1 MB Notification: Performance of Templates: time 0.003961/0.09238, allocations: 1.855 MB / 371.5 MB, free: 0.5312 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches