Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 222.9 MB / 240.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009352/0.0009352, allocations: 104.1 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000847/0.0008472, allocations: 44.08 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.253, allocations: 49.45 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003533/0.2566, allocations: 1.871 MB / 401.3 MB, free: 31.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.2577, allocations: 0.6116 MB / 401.9 MB, free: 30.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.2578, allocations: 8 kB / 402 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.258, allocations: 23.8 kB / 402 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.2582, allocations: 19.78 kB / 402 MB, free: 30.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/0.2585, allocations: 75.88 kB / 402.1 MB, free: 30.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.2587, allocations: 163.4 kB / 402.2 MB, free: 30.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.2589, allocations: 78.62 kB / 402.3 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.259, allocations: 59.77 kB / 402.4 MB, free: 30.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.2592, allocations: 91.48 kB / 402.5 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.2592, allocations: 12 kB / 402.5 MB, free: 30.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.372e-05/0.2593, allocations: 12 kB / 402.5 MB, free: 30.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.066e-05/0.2594, allocations: 43.83 kB / 402.5 MB, free: 30.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.2594, allocations: 75.53 kB / 402.6 MB, free: 30.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.2596, allocations: 176.9 kB / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2596, allocations: 0 / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2596, allocations: 0 / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2596, allocations: 3.938 kB / 402.8 MB, free: 30.06 MB / 298.7 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.0007735/0.2604, allocations: 0.5024 MB / 403.3 MB, free: 29.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2605, allocations: 12.03 kB / 403.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.643e-05/0.2605, allocations: 24.66 kB / 403.3 MB, free: 29.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.2607, allocations: 239.9 kB / 403.5 MB, free: 29.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.2608, allocations: 12.38 kB / 403.6 MB, free: 29.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.2608, allocations: 28.11 kB / 403.6 MB, free: 29.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.2611, allocations: 198.8 kB / 403.8 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2611, allocations: 0 / 403.8 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.2611, allocations: 15.98 kB / 403.8 MB, free: 28.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.2612, allocations: 8 kB / 403.8 MB, free: 28.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002634/0.2614, allocations: 139.8 kB / 403.9 MB, free: 28.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008147/0.2623, allocations: 0.7816 MB / 404.7 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005231/0.2628, allocations: 182.7 kB / 404.9 MB, free: 27.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.2629, allocations: 68.75 kB / 405 MB, free: 27.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.263, allocations: 4 kB / 405 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.2632, allocations: 156.9 kB / 405.1 MB, free: 27.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.2632, allocations: 0 / 405.1 MB, free: 27.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004727/0.2637, allocations: 237.2 kB / 405.4 MB, free: 27.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.931e-05/0.2637, allocations: 81.11 kB / 405.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.2639, allocations: 226.8 kB / 405.7 MB, free: 26.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.2639, allocations: 29.7 kB / 405.7 MB, free: 26.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.2639, allocations: 140.2 kB / 405.8 MB, free: 26.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.264, allocations: 43.48 kB / 405.9 MB, free: 26.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/0.264, allocations: 53.69 kB / 405.9 MB, free: 26.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.2641, allocations: 330.8 kB / 406.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.2642, allocations: 67.95 kB / 406.3 MB, free: 26.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.2644, allocations: 136.9 kB / 406.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.2646, allocations: 208.7 kB / 406.6 MB, free: 25.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2646, allocations: 0 / 406.6 MB, free: 25.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003437/0.265, allocations: 249.2 kB / 406.9 MB, free: 25.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.265, allocations: 11.94 kB / 406.9 MB, free: 25.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.265, allocations: 4 kB / 406.9 MB, free: 25.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.265, allocations: 3.938 kB / 406.9 MB, free: 25.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.2652, allocations: 39.91 kB / 406.9 MB, free: 25.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.2652, allocations: 8.188 kB / 406.9 MB, free: 25.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.2654, allocations: 47.66 kB / 407 MB, free: 25.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.2654, allocations: 8 kB / 407 MB, free: 25.5 MB / 298.7 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 9.278e-05/0.2655, allocations: 152 kB / 407.2 MB, free: 25.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.353e-05/0.2655, allocations: 15.81 kB / 407.2 MB, free: 25.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.2657, allocations: 131 kB / 407.3 MB, free: 25.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2657, allocations: 0 / 407.3 MB, free: 25.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2657, allocations: 7.938 kB / 407.3 MB, free: 25.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2657, allocations: 4 kB / 407.3 MB, free: 25.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004366/0.2662, allocations: 474.3 kB / 407.8 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2662, allocations: 0 / 407.8 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.2663, allocations: 15.98 kB / 407.8 MB, free: 24.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2663, allocations: 7.922 kB / 407.8 MB, free: 24.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.2663, allocations: 11.98 kB / 407.8 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2663, allocations: 0 / 407.8 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2663, allocations: 4 kB / 407.8 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.2669, allocations: 0.9273 MB / 408.7 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.267, allocations: 96.84 kB / 408.8 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.267, allocations: 8 kB / 408.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.2671, allocations: 15.98 kB / 408.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.238e-05/0.2672, allocations: 23.95 kB / 408.9 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.2672, allocations: 12.06 kB / 408.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.694e-05/0.2673, allocations: 140.6 kB / 409 MB, free: 23.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2673, allocations: 0 / 409 MB, free: 23.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003587/0.2677, allocations: 44.09 kB / 409.1 MB, free: 23.28 MB / 298.7 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.0001212/0.2678, allocations: 119.7 kB / 409.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.2681, allocations: 171.7 kB / 409.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2682, allocations: 0 / 409.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001516/0.2683, allocations: 79.89 kB / 409.4 MB, free: 22.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.2686, allocations: 32.42 kB / 409.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006568/0.2693, allocations: 0.5451 MB / 410 MB, free: 22.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.2695, allocations: 0.7362 MB / 410.7 MB, free: 21.53 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.285e-05/0.2696, allocations: 37.52 kB / 410.8 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.255e-05/0.2696, allocations: 15.44 kB / 410.8 MB, free: 21.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2696, allocations: 0 / 410.8 MB, free: 21.48 MB / 298.7 MB Notification: Performance of Templates: time 0.004106/0.2737, allocations: 1.958 MB / 412.8 MB, free: 19.54 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches