Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 91.69 kB / 17.3 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 173.7 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005188/0.0005194, allocations: 12 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1232, allocations: 47.58 MB / 328.9 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002125/0.1254, allocations: 1.524 MB / 330.5 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.1265, allocations: 0.6399 MB / 331.1 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.1266, allocations: 4 kB / 331.1 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.1267, allocations: 23.73 kB / 331.1 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.1269, allocations: 19.84 kB / 331.2 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.1272, allocations: 79.88 kB / 331.2 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.1274, allocations: 167.4 kB / 331.4 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.1276, allocations: 66.64 kB / 331.5 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.1277, allocations: 59.66 kB / 331.5 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1279, allocations: 67.62 kB / 331.6 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/0.1279, allocations: 4 kB / 331.6 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.888e-05/0.128, allocations: 19.98 kB / 331.6 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.825e-05/0.128, allocations: 35.83 kB / 331.6 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.1282, allocations: 97.19 kB / 331.7 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.1284, allocations: 159.6 kB / 331.9 MB, free: 0.793 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1284, allocations: 0 / 331.9 MB, free: 0.793 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1285, allocations: 4 kB / 331.9 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1285, allocations: 4 kB / 331.9 MB, free: 0.7852 MB / 270.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.00108/0.1296, allocations: 490.7 kB / 332.4 MB, free: 264 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.1296, allocations: 12.03 kB / 332.4 MB, free: 252 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.125e-05/0.1297, allocations: 24.75 kB / 332.4 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.13, allocations: 236 kB / 332.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.1301, allocations: 16.38 kB / 332.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.1301, allocations: 12.38 kB / 332.7 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/0.1306, allocations: 229.3 kB / 332.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1306, allocations: 7.984 kB / 332.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.1306, allocations: 11.98 kB / 332.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.1307, allocations: 4 kB / 332.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003451/0.131, allocations: 143.8 kB / 333.1 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.1322, allocations: 0.801 MB / 333.9 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006476/0.1329, allocations: 210.7 kB / 334.1 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.133, allocations: 72.75 kB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/0.1331, allocations: 7.938 kB / 334.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.1334, allocations: 148.7 kB / 334.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/0.1334, allocations: 4 kB / 334.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005964/0.134, allocations: 249.2 kB / 334.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.113e-05/0.1341, allocations: 89.05 kB / 334.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.1343, allocations: 218.7 kB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1344, allocations: 33.7 kB / 334.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1345, allocations: 148.2 kB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.779e-05/0.1345, allocations: 35.55 kB / 335.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.508e-05/0.1346, allocations: 41.69 kB / 335.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1347, allocations: 330.8 kB / 335.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.1349, allocations: 67.95 kB / 335.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.1351, allocations: 140.5 kB / 335.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.1355, allocations: 220.4 kB / 335.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1355, allocations: 7.938 kB / 335.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004678/0.1359, allocations: 257.3 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.136, allocations: 4 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.136, allocations: 4 kB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.136, allocations: 4 kB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.1362, allocations: 35.92 kB / 336.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.1362, allocations: 7.984 kB / 336.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.1364, allocations: 39.92 kB / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.293e-05/0.1364, allocations: 11.94 kB / 336.2 MB, free: 12.16 MB / 286.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.0001703/0.1366, allocations: 144 kB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.391e-05/0.1367, allocations: 23.72 kB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002992/0.137, allocations: 131.4 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.137, allocations: 0 / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.137, allocations: 4 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.137, allocations: 4.312 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007281/0.1377, allocations: 490.3 kB / 337 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.1378, allocations: 7.984 kB / 337 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.1379, allocations: 23.92 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1379, allocations: 3.938 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.1379, allocations: 0 / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.1379, allocations: 11.94 kB / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.138, allocations: 0 / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004541/0.1384, allocations: 292 kB / 337.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.1385, allocations: 96.86 kB / 337.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.1385, allocations: 8 kB / 337.4 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.1387, allocations: 27.91 kB / 337.4 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-05/0.1388, allocations: 23.97 kB / 337.5 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.1389, allocations: 4 kB / 337.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001443/0.139, allocations: 148.5 kB / 337.6 MB, free: 10.63 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.139, allocations: 0 / 337.6 MB, free: 10.63 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000362/0.1394, allocations: 43.91 kB / 337.7 MB, free: 10.59 MB / 286.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.0002438/0.1396, allocations: 115.2 kB / 337.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00042/0.1401, allocations: 172.3 kB / 337.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1401, allocations: 0 / 337.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.1403, allocations: 79.89 kB / 338 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.1406, allocations: 27.94 kB / 338 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007195/0.1414, allocations: 423.6 kB / 338.5 MB, free: 9.75 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.1417, allocations: 0.7323 MB / 339.2 MB, free: 8.992 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.1418, allocations: 33.53 kB / 339.2 MB, free: 8.961 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.108e-05/0.1419, allocations: 31.64 kB / 339.3 MB, free: 8.93 MB / 286.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1419, allocations: 0 / 339.3 MB, free: 8.93 MB / 286.1 MB Notification: Performance of Templates: time 0.005223/0.1471, allocations: 1.839 MB / 341.1 MB, free: 7.094 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches