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.001255/0.001255, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001317/0.001317, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.569/1.569, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001303/0.001303, allocations: 51.94 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1054, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003258/0.1087, allocations: 1.802 MB / 376.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.1099, allocations: 0.6746 MB / 377.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.11, allocations: 0 / 377.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.1102, allocations: 39.59 kB / 377.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.1104, allocations: 23.73 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.1107, allocations: 83.83 kB / 377.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.111, allocations: 171.4 kB / 377.9 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.1112, allocations: 78.61 kB / 378 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.1114, allocations: 79.66 kB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.1116, allocations: 87.59 kB / 378.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.1e-05/0.1116, allocations: 12 kB / 378.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.118e-05/0.1117, allocations: 28 kB / 378.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.969e-05/0.1118, allocations: 39.84 kB / 378.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.1119, allocations: 87.45 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.1123, allocations: 207.1 kB / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1123, allocations: 0 / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1123, allocations: 0 / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1123, allocations: 3.938 kB / 378.5 MB, free: 1.145 MB / 318.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.001/0.1133, allocations: 0.4987 MB / 379 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.1133, allocations: 12.02 kB / 379 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.861e-05/0.1134, allocations: 24.75 kB / 379.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.1137, allocations: 247.8 kB / 379.3 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.1137, allocations: 8.375 kB / 379.3 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.1138, allocations: 24.3 kB / 379.3 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.1141, allocations: 213.6 kB / 379.6 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.1141, allocations: 0 / 379.6 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.1142, allocations: 4 kB / 379.6 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.1142, allocations: 15.84 kB / 379.6 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2329/0.3471, allocations: 139.7 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.3483, allocations: 0.783 MB / 380.5 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006272/0.349, allocations: 188.3 kB / 380.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.3491, allocations: 64.73 kB / 380.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.339e-05/0.3492, allocations: 2.75 kB / 380.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002811/0.3495, allocations: 142.6 kB / 380.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.873e-06/0.3495, allocations: 3.672 kB / 380.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005892/0.3501, allocations: 245.3 kB / 381.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.3501, allocations: 84.41 kB / 381.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.3503, allocations: 217.4 kB / 381.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.3503, allocations: 32.34 kB / 381.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.672e-05/0.3504, allocations: 144 kB / 381.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.3505, allocations: 39.03 kB / 381.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-05/0.3506, allocations: 55.69 kB / 381.7 MB, free: 12.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.989e-05/0.3506, allocations: 336 kB / 382 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.3508, allocations: 65.25 kB / 382.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.351, allocations: 137.2 kB / 382.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003871/0.3514, allocations: 220.5 kB / 382.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3514, allocations: 0.625 kB / 382.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005475/0.352, allocations: 239.7 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.352, allocations: 6.656 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.352, allocations: 6.406 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.352, allocations: 3.625 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.3522, allocations: 41.62 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.3523, allocations: 4.078 kB / 382.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.3525, allocations: 38.83 kB / 382.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.3525, allocations: 8.328 kB / 382.8 MB, free: 11.63 MB / 318.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.0001411/0.3526, allocations: 155.8 kB / 382.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.3527, allocations: 16.98 kB / 382.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/0.353, allocations: 135.1 kB / 383.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.353, allocations: 3.344 kB / 383.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.353, allocations: 1.156 kB / 383.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.353, allocations: 0 / 383.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005562/0.3536, allocations: 487 kB / 383.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3536, allocations: 0 / 383.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.3537, allocations: 24 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.3537, allocations: 2.766 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.3537, allocations: 8.594 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3537, allocations: 0 / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3538, allocations: 4.156 kB / 383.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003986/0.3542, allocations: 290.3 kB / 383.9 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.3542, allocations: 89.95 kB / 384 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.3542, allocations: 2.453 kB / 384 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.3544, allocations: 23.36 kB / 384 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.585e-05/0.3545, allocations: 24.73 kB / 384 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.3545, allocations: 8.453 kB / 384 MB, free: 10.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.3547, allocations: 146.2 kB / 384.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3547, allocations: 4 kB / 384.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000303/0.355, allocations: 44.72 kB / 384.2 MB, free: 10.64 MB / 318.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.0001448/0.3551, allocations: 106.7 kB / 384.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004119/0.3556, allocations: 167.9 kB / 384.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3556, allocations: 0.5 kB / 384.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.3558, allocations: 82.61 kB / 384.6 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.3561, allocations: 33.95 kB / 384.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007562/0.3569, allocations: 362.8 kB / 384.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.3572, allocations: 0.7358 MB / 385.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.3573, allocations: 31.8 kB / 385.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.275e-05/0.3574, allocations: 24.86 kB / 385.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3574, allocations: 7.938 kB / 385.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of Templates: time 0.006023/0.3634, allocations: 2.107 MB / 387.8 MB, free: 9.383 MB / 318.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches