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.001081/0.001081, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.001803/0.001803, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.1 MB / 224 MB, free: 12.44 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.001148/0.001147, allocations: 51.94 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1267, allocations: 46.62 MB / 326.8 MB, free: 4.824 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003071/0.1298, allocations: 1.871 MB / 328.6 MB, free: 2.934 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1309, allocations: 0.6593 MB / 329.3 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.762e-05/0.131, allocations: 4 kB / 329.3 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.1311, allocations: 19.8 kB / 329.3 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.1313, allocations: 23.78 kB / 329.3 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.1315, allocations: 75.88 kB / 329.4 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.1317, allocations: 171.5 kB / 329.6 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.1319, allocations: 74.62 kB / 329.7 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.132, allocations: 75.64 kB / 329.7 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.1321, allocations: 87.61 kB / 329.8 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.1322, allocations: 16 kB / 329.8 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.538e-05/0.1322, allocations: 24 kB / 329.9 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.227e-05/0.1323, allocations: 47.81 kB / 329.9 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.517e-05/0.1324, allocations: 83.42 kB / 330 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.1326, allocations: 195.5 kB / 330.2 MB, free: 1.383 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1326, allocations: 3.938 kB / 330.2 MB, free: 1.379 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1326, allocations: 0 / 330.2 MB, free: 1.379 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1326, allocations: 0 / 330.2 MB, free: 1.379 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.0008348/0.1335, allocations: 0.5025 MB / 330.7 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.1335, allocations: 8.031 kB / 330.7 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.459e-05/0.1336, allocations: 28.64 kB / 330.7 MB, free: 0.793 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.1338, allocations: 239.8 kB / 330.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.1339, allocations: 12.38 kB / 331 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.1339, allocations: 16.38 kB / 331 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/0.1342, allocations: 213.4 kB / 331.2 MB, free: 272 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1343, allocations: 7.938 kB / 331.2 MB, free: 264 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.1343, allocations: 7.984 kB / 331.2 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.1343, allocations: 11.94 kB / 331.2 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.1346, allocations: 139.7 kB / 331.3 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009731/0.1356, allocations: 0.7816 MB / 332.1 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005688/0.1362, allocations: 190.6 kB / 332.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.1363, allocations: 60.83 kB / 332.4 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/0.1364, allocations: 8 kB / 332.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002435/0.1366, allocations: 148.9 kB / 332.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.1366, allocations: 0 / 332.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005425/0.1372, allocations: 241.5 kB / 332.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.1373, allocations: 85.11 kB / 332.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.1375, allocations: 218.7 kB / 333.1 MB, free: 14.26 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.1375, allocations: 29.7 kB / 333.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.065e-05/0.1376, allocations: 144.2 kB / 333.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.756e-05/0.1376, allocations: 39.53 kB / 333.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.618e-05/0.1377, allocations: 57.69 kB / 333.3 MB, free: 13.98 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1378, allocations: 330.8 kB / 333.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.138, allocations: 72.02 kB / 333.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.1382, allocations: 136.5 kB / 333.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.1385, allocations: 212.7 kB / 334.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1385, allocations: 4 kB / 334.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004248/0.139, allocations: 253.1 kB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.139, allocations: 4 kB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.139, allocations: 7.938 kB / 334.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.139, allocations: 7.984 kB / 334.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.1392, allocations: 40.17 kB / 334.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.1392, allocations: 7.938 kB / 334.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1394, allocations: 35.81 kB / 334.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.1394, allocations: 11.94 kB / 334.4 MB, free: 12.8 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.0001344/0.1396, allocations: 140.1 kB / 334.6 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.1396, allocations: 15.81 kB / 334.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.1398, allocations: 139 kB / 334.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1398, allocations: 0 / 334.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.1399, allocations: 0 / 334.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1399, allocations: 4 kB / 334.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000569/0.1404, allocations: 490.1 kB / 335.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1404, allocations: 0 / 335.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.1406, allocations: 15.98 kB / 335.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1406, allocations: 0 / 335.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.1406, allocations: 8 kB / 335.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1406, allocations: 3.938 kB / 335.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.1406, allocations: 4.062 kB / 335.2 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003833/0.141, allocations: 284.1 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.1411, allocations: 100.8 kB / 335.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.1411, allocations: 4 kB / 335.6 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.1413, allocations: 23.92 kB / 335.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.396e-05/0.1414, allocations: 23.97 kB / 335.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.1414, allocations: 4 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001089/0.1415, allocations: 148.6 kB / 335.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.1415, allocations: 0 / 335.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.1418, allocations: 39.94 kB / 335.8 MB, free: 11.27 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.000149/0.142, allocations: 119.3 kB / 336 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003919/0.1424, allocations: 175.7 kB / 336.1 MB, free: 10.97 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1424, allocations: 0 / 336.1 MB, free: 10.97 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.1426, allocations: 79.89 kB / 336.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.1429, allocations: 32.44 kB / 336.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006954/0.1436, allocations: 409.7 kB / 336.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.1439, allocations: 0.732 MB / 337.4 MB, free: 9.676 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.144, allocations: 33.52 kB / 337.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.828e-05/0.1441, allocations: 23.44 kB / 337.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1441, allocations: 0 / 337.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of Templates: time 0.004853/0.149, allocations: 1.971 MB / 339.4 MB, free: 7.656 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