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.001497/0.001498, allocations: 102.3 kB / 16.5 MB, free: 6.695 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.001763/0.001763, allocations: 194.4 kB / 17.42 MB, free: 6.09 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.336/1.336, allocations: 222.9 MB / 241.1 MB, free: 13.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009334/0.0009335, allocations: 55.73 kB / 299.9 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.09061, allocations: 49.45 MB / 349.4 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003056/0.0937, allocations: 1.871 MB / 351.3 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.09479, allocations: 0.6272 MB / 351.9 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.09492, allocations: 3.938 kB / 351.9 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.09508, allocations: 23.8 kB / 351.9 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.09525, allocations: 19.84 kB / 351.9 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.0955, allocations: 67.89 kB / 352 MB, free: 2 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002004/0.09572, allocations: 171.4 kB / 352.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.09589, allocations: 62.64 kB / 352.2 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.09601, allocations: 71.7 kB / 352.3 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.09617, allocations: 87.55 kB / 352.4 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.09621, allocations: 8 kB / 352.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.948e-05/0.09629, allocations: 12 kB / 352.4 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.602e-05/0.09637, allocations: 47.81 kB / 352.5 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.472e-05/0.09646, allocations: 75.55 kB / 352.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.0967, allocations: 171.6 kB / 352.7 MB, free: 1.305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.09671, allocations: 4 kB / 352.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.09672, allocations: 0 / 352.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.09673, allocations: 0 / 352.7 MB, free: 1.301 MB / 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.000868/0.09761, allocations: 0.5025 MB / 353.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.09765, allocations: 12.03 kB / 353.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.509e-05/0.09771, allocations: 20.66 kB / 353.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.09803, allocations: 243.8 kB / 353.5 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.09806, allocations: 8.375 kB / 353.5 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.148e-05/0.0981, allocations: 28.11 kB / 353.5 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000382/0.09849, allocations: 209.9 kB / 353.7 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.09851, allocations: 3.984 kB / 353.7 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.09854, allocations: 8 kB / 353.7 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.815e-05/0.09856, allocations: 8 kB / 353.7 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.09889, allocations: 135.8 kB / 353.9 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009986/0.0999, allocations: 0.7856 MB / 354.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.1005, allocations: 186.7 kB / 354.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.1007, allocations: 64.75 kB / 354.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.1007, allocations: 7.938 kB / 354.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.101, allocations: 148.9 kB / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.101, allocations: 0 / 355 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005623/0.1016, allocations: 241.3 kB / 355.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.1016, allocations: 85.05 kB / 355.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.1018, allocations: 222.7 kB / 355.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1019, allocations: 33.7 kB / 355.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.865e-05/0.1019, allocations: 136.3 kB / 355.7 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.102, allocations: 35.55 kB / 355.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.701e-05/0.1021, allocations: 61.69 kB / 355.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1022, allocations: 334.8 kB / 356.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.1024, allocations: 67.95 kB / 356.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.1026, allocations: 132.8 kB / 356.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003547/0.103, allocations: 216.3 kB / 356.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.103, allocations: 0 / 356.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004372/0.1034, allocations: 249.1 kB / 356.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1034, allocations: 12.25 kB / 356.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1034, allocations: 0 / 356.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1035, allocations: 4 kB / 356.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.1036, allocations: 39.91 kB / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.1037, allocations: 7.938 kB / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.1038, allocations: 31.77 kB / 356.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.1039, allocations: 15.98 kB / 356.9 MB, free: 12.74 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.0001413/0.104, allocations: 144 kB / 357.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.1041, allocations: 23.78 kB / 357.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002966/0.1044, allocations: 135 kB / 357.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1044, allocations: 4 kB / 357.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1044, allocations: 4.406 kB / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1044, allocations: 0 / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006061/0.105, allocations: 478.2 kB / 357.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.105, allocations: 4 kB / 357.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.1052, allocations: 27.92 kB / 357.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.1052, allocations: 3.938 kB / 357.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.1052, allocations: 3.984 kB / 357.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1052, allocations: 4 kB / 357.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1052, allocations: 0 / 357.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004183/0.1056, allocations: 283.8 kB / 358 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.1057, allocations: 96.83 kB / 358.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.1057, allocations: 15.94 kB / 358.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.1059, allocations: 15.97 kB / 358.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.549e-05/0.106, allocations: 23.91 kB / 358.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.106, allocations: 4 kB / 358.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001221/0.1062, allocations: 148.6 kB / 358.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1062, allocations: 4 kB / 358.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003288/0.1065, allocations: 36 kB / 358.4 MB, free: 11.2 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.0001635/0.1067, allocations: 111.7 kB / 358.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.1071, allocations: 171.7 kB / 358.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1071, allocations: 0 / 358.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.1073, allocations: 80.39 kB / 358.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.1076, allocations: 24.98 kB / 358.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006722/0.1083, allocations: 423.2 kB / 359.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.1086, allocations: 0.7323 MB / 359.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.1087, allocations: 33.52 kB / 359.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.009e-05/0.1088, allocations: 19.44 kB / 359.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1088, allocations: 4 kB / 359.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of Templates: time 0.004814/0.1136, allocations: 1.861 MB / 361.8 MB, free: 7.707 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 -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/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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches