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.001109/0.001109, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001638, allocations: 67.52 kB / 307.6 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09724/0.0989, allocations: 50.54 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003408/0.1023, allocations: 1.829 MB / 360 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1037, allocations: 0.6972 MB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.1039, allocations: 7.938 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.1041, allocations: 31.67 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.1042, allocations: 27.72 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.1046, allocations: 95.77 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00025/0.1049, allocations: 171.4 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.1051, allocations: 82.61 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1053, allocations: 75.66 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.1055, allocations: 91.59 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.1055, allocations: 12 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.91e-05/0.1056, allocations: 23.98 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.197e-05/0.1057, allocations: 47.84 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.1058, allocations: 91.45 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.1061, allocations: 195.5 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1061, allocations: 0 / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1061, allocations: 4 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1061, allocations: 0 / 361.6 MB, free: 10.64 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.0009195/0.107, allocations: 0.5064 MB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.1071, allocations: 8.031 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.1073, allocations: 40.64 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.1075, allocations: 237.5 kB / 362.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.1076, allocations: 16.12 kB / 362.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.1076, allocations: 20.38 kB / 362.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000389/0.108, allocations: 209.9 kB / 362.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.108, allocations: 3.938 kB / 362.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.108, allocations: 8 kB / 362.6 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.1081, allocations: 8 kB / 362.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003275/0.1084, allocations: 151.7 kB / 362.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.1095, allocations: 0.7816 MB / 363.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006263/0.1101, allocations: 186.6 kB / 363.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.1103, allocations: 60.83 kB / 363.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.674e-05/0.1103, allocations: 7.984 kB / 363.8 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.1106, allocations: 145 kB / 364 MB, free: 8.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.1106, allocations: 0 / 364 MB, free: 8.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005945/0.1112, allocations: 249.2 kB / 364.2 MB, free: 7.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.1113, allocations: 77.11 kB / 364.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.1115, allocations: 226.9 kB / 364.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.1115, allocations: 33.7 kB / 364.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.571e-05/0.1117, allocations: 136.2 kB / 364.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.579e-05/0.1117, allocations: 43.62 kB / 364.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.1118, allocations: 61.59 kB / 364.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1119, allocations: 330.8 kB / 365.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.1121, allocations: 71.94 kB / 365.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.1123, allocations: 138 kB / 365.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.1127, allocations: 208.4 kB / 365.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1127, allocations: 0 / 365.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004738/0.1132, allocations: 249.2 kB / 365.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1132, allocations: 7.938 kB / 365.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.1132, allocations: 4 kB / 365.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.1133, allocations: 4 kB / 365.8 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.1134, allocations: 39.91 kB / 365.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.1135, allocations: 4 kB / 365.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.1136, allocations: 28.14 kB / 365.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.1137, allocations: 15.94 kB / 365.9 MB, free: 6.055 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.0001444/0.1138, allocations: 152.8 kB / 366 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.384e-05/0.1139, allocations: 19.72 kB / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002607/0.1141, allocations: 135 kB / 366.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.1141, allocations: 4 kB / 366.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1142, allocations: 0 / 366.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1142, allocations: 3.984 kB / 366.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006312/0.1148, allocations: 486.2 kB / 366.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.1148, allocations: 0 / 366.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.1149, allocations: 27.92 kB / 366.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.115, allocations: 0 / 366.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.115, allocations: 7.984 kB / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.115, allocations: 7.922 kB / 366.7 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.115, allocations: 0 / 366.7 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004339/0.1154, allocations: 286.8 kB / 367 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.1155, allocations: 96.86 kB / 367.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.1156, allocations: 4 kB / 367.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.1157, allocations: 19.91 kB / 367.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.336e-05/0.1158, allocations: 23.97 kB / 367.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.1158, allocations: 8 kB / 367.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.116, allocations: 152.6 kB / 367.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.116, allocations: 0 / 367.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.1163, allocations: 40.09 kB / 367.3 MB, free: 4.504 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.0001621/0.1165, allocations: 115.1 kB / 367.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004437/0.1169, allocations: 184.3 kB / 367.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.117, allocations: 4 kB / 367.6 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001916/0.1171, allocations: 75.89 kB / 367.7 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.1175, allocations: 26.95 kB / 367.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007153/0.1182, allocations: 391.6 kB / 368.1 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.1185, allocations: 0.7476 MB / 368.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.799e-05/0.1186, allocations: 23.42 kB / 368.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1186, allocations: 0 / 368.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of Templates: time 0.004477/0.1231, allocations: 2.442 MB / 371.3 MB, free: 456 kB / 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/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_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches