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.001091/0.001091, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 59.66 kB / 306.9 MB, free: 1.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09255, allocations: 50.53 MB / 357.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003094/0.09568, allocations: 1.895 MB / 359.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.09688, allocations: 0.6856 MB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.431e-05/0.09699, allocations: 7.938 kB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.09712, allocations: 15.8 kB / 360 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.09724, allocations: 31.78 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.09748, allocations: 83.86 kB / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.09768, allocations: 167.4 kB / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.09784, allocations: 70.62 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.09799, allocations: 75.7 kB / 360.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.09812, allocations: 83.55 kB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.09816, allocations: 8 kB / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.983e-05/0.09824, allocations: 20 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.063e-05/0.0983, allocations: 39.83 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.61e-05/0.09839, allocations: 79.47 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.09856, allocations: 132 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.09857, allocations: 0 / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.09858, allocations: 4 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.0986, allocations: 0 / 360.8 MB, free: 11.11 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.0008231/0.09942, allocations: 0.5103 MB / 361.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.09946, allocations: 8.031 kB / 361.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.09962, allocations: 32.64 kB / 361.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/0.09986, allocations: 237.5 kB / 361.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.09989, allocations: 20.12 kB / 361.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.09992, allocations: 28.34 kB / 361.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.1003, allocations: 205.8 kB / 361.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1003, allocations: 0 / 361.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.1003, allocations: 8 kB / 361.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.1003, allocations: 8 kB / 361.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003148/0.1007, allocations: 147.7 kB / 362 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009921/0.1017, allocations: 0.7816 MB / 362.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.1023, allocations: 186.7 kB / 363 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.1024, allocations: 56.83 kB / 363 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.1025, allocations: 7.984 kB / 363 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.1028, allocations: 152.9 kB / 363.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.1028, allocations: 3.938 kB / 363.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005675/0.1033, allocations: 241.3 kB / 363.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.1034, allocations: 81.11 kB / 363.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.1036, allocations: 222.9 kB / 363.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.1037, allocations: 33.7 kB / 363.7 MB, free: 7.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.758e-05/0.1037, allocations: 148.2 kB / 363.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.1038, allocations: 31.64 kB / 363.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-05/0.1039, allocations: 65.59 kB / 364 MB, free: 7.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.104, allocations: 334.8 kB / 364.3 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.1042, allocations: 63.95 kB / 364.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.1044, allocations: 137.6 kB / 364.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003334/0.1047, allocations: 216.6 kB / 364.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1047, allocations: 0 / 364.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004405/0.1051, allocations: 245.2 kB / 365 MB, free: 6.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.1052, allocations: 6.656 kB / 365 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1052, allocations: 4 kB / 365 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1052, allocations: 4 kB / 365 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.1054, allocations: 43.91 kB / 365 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1054, allocations: 4 kB / 365 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.1056, allocations: 27.83 kB / 365 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.1056, allocations: 12.19 kB / 365.1 MB, free: 6.531 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.00013/0.1057, allocations: 152.6 kB / 365.2 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.1058, allocations: 23.66 kB / 365.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002405/0.106, allocations: 135 kB / 365.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.106, allocations: 7.984 kB / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.106, allocations: 0 / 365.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.106, allocations: 4.453 kB / 365.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005957/0.1066, allocations: 490.1 kB / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1067, allocations: 0 / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.1068, allocations: 19.98 kB / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1068, allocations: 0 / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.1068, allocations: 7.984 kB / 365.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.1068, allocations: 3.938 kB / 365.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1068, allocations: 3.938 kB / 365.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004099/0.1072, allocations: 282.8 kB / 366.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.1073, allocations: 100.9 kB / 366.3 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.1073, allocations: 4.062 kB / 366.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.1075, allocations: 23.91 kB / 366.3 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.699e-05/0.1076, allocations: 19.97 kB / 366.3 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.1076, allocations: 8 kB / 366.3 MB, free: 5.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001237/0.1078, allocations: 152.7 kB / 366.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1078, allocations: 0 / 366.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.1081, allocations: 39.91 kB / 366.5 MB, free: 4.977 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.0001525/0.1082, allocations: 107.1 kB / 366.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003856/0.1086, allocations: 172.3 kB / 366.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1087, allocations: 0 / 366.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.1088, allocations: 79.89 kB / 366.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.1092, allocations: 27.98 kB / 366.9 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007185/0.1099, allocations: 449 kB / 367.3 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1102, allocations: 0.7284 MB / 368 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.061e-05/0.1103, allocations: 23.42 kB / 368.1 MB, free: 3.336 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1103, allocations: 0 / 368.1 MB, free: 3.336 MB / 302.1 MB Notification: Performance of Templates: time 0.004252/0.1146, allocations: 2.447 MB / 370.5 MB, free: 0.8984 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/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