Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 116.5 kB / 17.69 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.00111, allocations: 191 kB / 18.63 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.001181, allocations: 59.25 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08516/0.08635, allocations: 49.43 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002767/0.08916, allocations: 1.825 MB / 353.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.09022, allocations: 0.6271 MB / 353.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.341e-05/0.09032, allocations: 7.938 kB / 353.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.09045, allocations: 27.67 kB / 354 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.09059, allocations: 23.73 kB / 354 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.09086, allocations: 87.78 kB / 354.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.09108, allocations: 175.5 kB / 354.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.09125, allocations: 70.64 kB / 354.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.09139, allocations: 75.69 kB / 354.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.09159, allocations: 87.55 kB / 354.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.09164, allocations: 16 kB / 354.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.965e-05/0.09174, allocations: 19.94 kB / 354.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.797e-05/0.09183, allocations: 51.83 kB / 354.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.858e-05/0.09192, allocations: 79.53 kB / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.09217, allocations: 199.1 kB / 354.8 MB, free: 348 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.09218, allocations: 0 / 354.8 MB, free: 348 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.0922, allocations: 4 kB / 354.8 MB, free: 344 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.09221, allocations: 0 / 354.8 MB, free: 344 kB / 286.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.0009079/0.09312, allocations: 0.5063 MB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.09316, allocations: 8.031 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.39e-05/0.09322, allocations: 24.66 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.09352, allocations: 252.3 kB / 355.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.09355, allocations: 20.36 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.014e-05/0.09358, allocations: 16.12 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.09397, allocations: 209.9 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.09399, allocations: 3.938 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.09401, allocations: 8 kB / 355.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.09404, allocations: 4 kB / 355.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.09436, allocations: 147.7 kB / 356 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.09542, allocations: 0.7739 MB / 356.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.09599, allocations: 194.6 kB / 357 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000141/0.09614, allocations: 60.83 kB / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.09619, allocations: 0 / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.09644, allocations: 156.5 kB / 357.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.09645, allocations: 0 / 357.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005561/0.09701, allocations: 245.3 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.09707, allocations: 85.11 kB / 357.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.09725, allocations: 218.7 kB / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.09728, allocations: 33.7 kB / 357.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.953e-05/0.09739, allocations: 132.3 kB / 357.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.247e-05/0.09743, allocations: 43.53 kB / 357.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.375e-05/0.09751, allocations: 53.7 kB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.09764, allocations: 334.8 kB / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.0978, allocations: 71.95 kB / 358.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.098, allocations: 136.5 kB / 358.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004541/0.09846, allocations: 212.6 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.09848, allocations: 0 / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004245/0.09891, allocations: 253 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.09893, allocations: 7.984 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.09894, allocations: 4 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.09897, allocations: 8.25 kB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.09914, allocations: 39.92 kB / 359 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.09916, allocations: 11.88 kB / 359.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.09932, allocations: 27.81 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.09935, allocations: 12 kB / 359.1 MB, free: 11.76 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.0001468/0.0995, allocations: 144.1 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.09954, allocations: 23.75 kB / 359.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.09978, allocations: 135.4 kB / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.0998, allocations: 4 kB / 359.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.09981, allocations: 3.938 kB / 359.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.09981, allocations: 0 / 359.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006054/0.1004, allocations: 478.2 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.1004, allocations: 3.984 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.1006, allocations: 23.98 kB / 359.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.1006, allocations: 7.938 kB / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.1006, allocations: 3.984 kB / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.1007, allocations: 4 kB / 359.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1007, allocations: 3.938 kB / 359.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.101, allocations: 280.1 kB / 360.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.477e-05/0.1011, allocations: 100.8 kB / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.1012, allocations: 15.94 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.1013, allocations: 11.98 kB / 360.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.1014, allocations: 23.97 kB / 360.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.1014, allocations: 4 kB / 360.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.1015, allocations: 148.6 kB / 360.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1016, allocations: 0 / 360.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002877/0.1018, allocations: 36 kB / 360.5 MB, free: 10.22 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.0001358/0.102, allocations: 115.2 kB / 360.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003932/0.1024, allocations: 175.7 kB / 360.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1024, allocations: 0 / 360.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.1027, allocations: 75.89 kB / 360.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.103, allocations: 40.78 kB / 360.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006381/0.1036, allocations: 353.9 kB / 361.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.1039, allocations: 0.7397 MB / 362 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.108e-05/0.104, allocations: 33.52 kB / 362 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.831e-05/0.1041, allocations: 19.44 kB / 362.1 MB, free: 8.625 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1041, allocations: 0 / 362.1 MB, free: 8.625 MB / 302.1 MB Notification: Performance of Templates: time 0.004551/0.1086, allocations: 2.096 MB / 364.2 MB, free: 6.543 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches