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.000983/0.0009831, allocations: 98.02 kB / 17 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001027, allocations: 194.6 kB / 17.9 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.000234, allocations: 8 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.09966, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001979/0.1017, allocations: 1.505 MB / 360.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1028, allocations: 0.651 MB / 360.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.103, allocations: 3.938 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.1031, allocations: 23.78 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.1033, allocations: 23.8 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.1036, allocations: 75.84 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.1039, allocations: 155.5 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.104, allocations: 58.39 kB / 361.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.1042, allocations: 63.7 kB / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1043, allocations: 67.67 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.1044, allocations: 8 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.1045, allocations: 15.98 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.1045, allocations: 31.86 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.541e-05/0.1046, allocations: 61.56 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.1048, allocations: 116 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1048, allocations: 3.938 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1048, allocations: 0 / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1048, allocations: 8 kB / 361.5 MB, free: 10.76 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.0008118/0.1056, allocations: 482.6 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.1057, allocations: 8.031 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.1058, allocations: 39.7 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.1061, allocations: 236.4 kB / 362.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.1062, allocations: 15.75 kB / 362.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.1062, allocations: 16 kB / 362.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.1066, allocations: 214.1 kB / 362.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1066, allocations: 0 / 362.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.1066, allocations: 8 kB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/0.1067, allocations: 7.859 kB / 362.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003111/0.107, allocations: 147.8 kB / 362.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.1081, allocations: 0.8089 MB / 363.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006055/0.1087, allocations: 214.5 kB / 363.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.1088, allocations: 64.83 kB / 363.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.548e-05/0.1089, allocations: 4 kB / 363.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.1091, allocations: 153 kB / 363.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1092, allocations: 0 / 363.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005618/0.1097, allocations: 253.2 kB / 364.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.1098, allocations: 81.09 kB / 364.2 MB, free: 7.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.11, allocations: 231 kB / 364.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.11, allocations: 33.7 kB / 364.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.585e-05/0.1101, allocations: 140.2 kB / 364.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.258e-05/0.1102, allocations: 39.53 kB / 364.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.196e-05/0.1102, allocations: 4 kB / 364.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1103, allocations: 330.8 kB / 365 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.1105, allocations: 71.95 kB / 365 MB, free: 6.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.1107, allocations: 141.6 kB / 365.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.1109, allocations: 83.84 kB / 365.2 MB, free: 6.707 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1109, allocations: 4 kB / 365.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004595/0.1114, allocations: 249.2 kB / 365.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1114, allocations: 11.94 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1114, allocations: 0 / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.1114, allocations: 7.984 kB / 365.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.1116, allocations: 44.17 kB / 365.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.1116, allocations: 8 kB / 365.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.1118, allocations: 40.03 kB / 365.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1118, allocations: 8 kB / 365.6 MB, free: 6.336 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 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.112, allocations: 152.6 kB / 365.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.112, allocations: 23.81 kB / 365.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000245/0.1123, allocations: 131.4 kB / 365.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1123, allocations: 4 kB / 365.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1123, allocations: 0 / 365.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1123, allocations: 96 / 365.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005959/0.1129, allocations: 490.1 kB / 366.4 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1129, allocations: 0 / 366.4 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.113, allocations: 31.91 kB / 366.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1131, allocations: 4 kB / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.1131, allocations: 0 / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1131, allocations: 0 / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1131, allocations: 0 / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004091/0.1135, allocations: 294.6 kB / 366.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-05/0.1136, allocations: 96.86 kB / 366.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.372e-05/0.1136, allocations: 11.92 kB / 366.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.1138, allocations: 19.98 kB / 366.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.469e-05/0.1139, allocations: 27.95 kB / 366.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.1139, allocations: 11.98 kB / 366.9 MB, free: 4.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.114, allocations: 140.7 kB / 367 MB, free: 4.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.114, allocations: 0 / 367 MB, free: 4.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.1143, allocations: 43.91 kB / 367.1 MB, free: 4.777 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000144/0.1145, allocations: 103.2 kB / 367.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004001/0.1149, allocations: 179.7 kB / 367.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1149, allocations: 3.938 kB / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.1151, allocations: 79.89 kB / 367.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.1154, allocations: 36.44 kB / 367.5 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006818/0.1161, allocations: 395.8 kB / 367.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.1165, allocations: 0.7364 MB / 368.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.1166, allocations: 29.53 kB / 368.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.056e-05/0.1167, allocations: 27.7 kB / 368.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1167, allocations: 0 / 368.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of Templates: time 0.004585/0.1213, allocations: 1.788 MB / 370.4 MB, free: 1.363 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