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.001599/0.001599, allocations: 105.4 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00207/0.00207, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00259/0.002591, allocations: 64.45 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.128, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003893/0.132, allocations: 1.89 MB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1338, allocations: 0.6856 MB / 359.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002529/0.1341, allocations: 4 kB / 359.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.1343, allocations: 23.73 kB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.1346, allocations: 19.84 kB / 359.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004904/0.1351, allocations: 83.86 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.1355, allocations: 175.4 kB / 359.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.1358, allocations: 82.59 kB / 359.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.136, allocations: 83.64 kB / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002441/0.1363, allocations: 83.61 kB / 360.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.1363, allocations: 16 kB / 360.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1365, allocations: 24 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.605e-05/0.1366, allocations: 51.81 kB / 360.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.1367, allocations: 83.48 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.1371, allocations: 195.5 kB / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1371, allocations: 0 / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1371, allocations: 0 / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.1371, allocations: 4 kB / 360.5 MB, free: 10.91 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.001068/0.1382, allocations: 0.5064 MB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.1383, allocations: 8.031 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.1384, allocations: 36.59 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.1388, allocations: 241.5 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.1388, allocations: 20.12 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.1388, allocations: 20.38 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.1393, allocations: 201.9 kB / 361.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1393, allocations: 7.938 kB / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.1393, allocations: 4 kB / 361.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.754e-05/0.1393, allocations: 8 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003562/0.1397, allocations: 143.7 kB / 361.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.1412, allocations: 0.7855 MB / 362.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006719/0.1419, allocations: 194.6 kB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.1421, allocations: 56.83 kB / 362.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.1421, allocations: 7.984 kB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002765/0.1424, allocations: 141 kB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/0.1424, allocations: 0 / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006369/0.1431, allocations: 245.2 kB / 363.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/0.1431, allocations: 81.11 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.1434, allocations: 222.9 kB / 363.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.1434, allocations: 33.7 kB / 363.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1436, allocations: 144.2 kB / 363.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.005e-05/0.1436, allocations: 35.62 kB / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1437, allocations: 65.59 kB / 363.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1439, allocations: 330.8 kB / 363.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.1441, allocations: 63.95 kB / 364 MB, free: 7.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.1443, allocations: 145.6 kB / 364.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.1447, allocations: 212.3 kB / 364.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1447, allocations: 0 / 364.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004614/0.1451, allocations: 253.5 kB / 364.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1452, allocations: 8 kB / 364.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1452, allocations: 0 / 364.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.1452, allocations: 4.375 kB / 364.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.1454, allocations: 39.91 kB / 364.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.1454, allocations: 4 kB / 364.7 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.1456, allocations: 27.83 kB / 364.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.1456, allocations: 15.88 kB / 364.7 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 (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.0001633/0.1458, allocations: 156.8 kB / 364.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.1458, allocations: 19.72 kB / 364.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.1461, allocations: 131 kB / 365 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.1461, allocations: 4 kB / 365 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1461, allocations: 0 / 365 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/0.1461, allocations: 3.984 kB / 365 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006332/0.1468, allocations: 486.2 kB / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.1468, allocations: 0 / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.1469, allocations: 23.92 kB / 365.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1469, allocations: 0 / 365.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.1469, allocations: 8 kB / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.1469, allocations: 7.922 kB / 365.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.147, allocations: 0 / 365.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004424/0.1474, allocations: 284.1 kB / 365.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.368e-05/0.1475, allocations: 96.86 kB / 365.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.1475, allocations: 0 / 365.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.1477, allocations: 23.91 kB / 365.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.748e-05/0.1478, allocations: 19.97 kB / 365.9 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.1478, allocations: 8 kB / 365.9 MB, free: 4.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001337/0.148, allocations: 148.6 kB / 366.1 MB, free: 4.836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.148, allocations: 4 kB / 366.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.1483, allocations: 39.91 kB / 366.1 MB, free: 4.793 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.000215/0.1485, allocations: 107.2 kB / 366.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004606/0.149, allocations: 182.8 kB / 366.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.149, allocations: 4 kB / 366.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.1492, allocations: 84.14 kB / 366.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.1496, allocations: 27.98 kB / 366.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008035/0.1504, allocations: 425.9 kB / 366.9 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.1508, allocations: 0.7398 MB / 367.7 MB, free: 3.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.1509, allocations: 29.53 kB / 367.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.151, allocations: 27.42 kB / 367.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.151, allocations: 0 / 367.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of Templates: time 0.00585/0.1568, allocations: 1.962 MB / 369.7 MB, free: 1.168 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