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.001132/0.001132, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 60.16 kB / 306.9 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1111, allocations: 50.53 MB / 357.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003782/0.1149, allocations: 1.829 MB / 359.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1163, allocations: 0.705 MB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1164, allocations: 7.938 kB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1166, allocations: 27.66 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.1168, allocations: 35.72 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.1171, allocations: 91.77 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003003/0.1174, allocations: 175.4 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.1176, allocations: 78.61 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/0.1179, allocations: 75.66 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.1181, allocations: 91.59 kB / 360.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.382e-05/0.1181, allocations: 16 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.018e-05/0.1182, allocations: 24 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.285e-05/0.1183, allocations: 43.83 kB / 360.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.1184, allocations: 95.45 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.1187, allocations: 191.5 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.1187, allocations: 4 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1187, allocations: 0 / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1187, allocations: 0 / 360.9 MB, free: 10.61 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.0009443/0.1197, allocations: 0.4948 MB / 361.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1197, allocations: 19.95 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.1199, allocations: 32.59 kB / 361.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.1202, allocations: 249.5 kB / 361.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.1202, allocations: 12.12 kB / 361.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.1203, allocations: 20.38 kB / 361.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004038/0.1207, allocations: 205.9 kB / 362 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1207, allocations: 0 / 362 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.1207, allocations: 4 kB / 362 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.1208, allocations: 15.94 kB / 362 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003386/0.1211, allocations: 139.7 kB / 362.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.1222, allocations: 0.7933 MB / 362.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000607/0.1228, allocations: 186.6 kB / 363.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.123, allocations: 64.83 kB / 363.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.123, allocations: 4 kB / 363.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.1233, allocations: 143.6 kB / 363.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.1233, allocations: 0 / 363.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000586/0.1239, allocations: 249.2 kB / 363.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.124, allocations: 81.11 kB / 363.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.1242, allocations: 226.9 kB / 363.8 MB, free: 7.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.1242, allocations: 29.7 kB / 363.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.252e-05/0.1243, allocations: 144.2 kB / 364 MB, free: 7.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.1243, allocations: 31.62 kB / 364 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/0.1244, allocations: 65.59 kB / 364.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1246, allocations: 334.8 kB / 364.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.1247, allocations: 67.95 kB / 364.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.1249, allocations: 133.6 kB / 364.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.1253, allocations: 212.4 kB / 364.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.1253, allocations: 0 / 364.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004489/0.1258, allocations: 245.5 kB / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1258, allocations: 8 kB / 365.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1258, allocations: 0.625 kB / 365.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.1258, allocations: 8 kB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.126, allocations: 43.92 kB / 365.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.126, allocations: 7.984 kB / 365.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.1262, allocations: 31.77 kB / 365.2 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.1262, allocations: 11.94 kB / 365.2 MB, free: 6.027 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.000146/0.1264, allocations: 156.6 kB / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.1264, allocations: 23.72 kB / 365.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002497/0.1267, allocations: 135 kB / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1267, allocations: 0 / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1267, allocations: 0 / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1267, allocations: 4 kB / 365.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.1273, allocations: 486.1 kB / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1273, allocations: 0 / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.1275, allocations: 19.92 kB / 366 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1275, allocations: 4 kB / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.1275, allocations: 4 kB / 366 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1275, allocations: 3.938 kB / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1275, allocations: 0 / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.1279, allocations: 288.1 kB / 366.3 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.059e-05/0.128, allocations: 92.86 kB / 366.4 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.128, allocations: 8 kB / 366.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.1282, allocations: 23.91 kB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/0.1283, allocations: 19.98 kB / 366.4 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.1283, allocations: 7.984 kB / 366.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000121/0.1285, allocations: 144.7 kB / 366.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1285, allocations: 0 / 366.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.1288, allocations: 43.84 kB / 366.6 MB, free: 4.484 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.0001583/0.129, allocations: 119.2 kB / 366.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004252/0.1294, allocations: 175.7 kB / 366.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1294, allocations: 192 / 366.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.1296, allocations: 83.83 kB / 367 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.1299, allocations: 37 kB / 367 MB, free: 4.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006821/0.1306, allocations: 361.9 kB / 367.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.131, allocations: 0.7359 MB / 368.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.1311, allocations: 29.53 kB / 368.1 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.467e-05/0.1311, allocations: 27.42 kB / 368.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1312, allocations: 3.938 kB / 368.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of Templates: time 0.005275/0.1364, allocations: 2.106 MB / 370.3 MB, free: 0.7734 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