Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009516/0.0009517, allocations: 177.7 kB / 17.36 MB, free: 4.195 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.6 MB / 223.7 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007818/0.0007821, allocations: 90.55 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002491, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2512, allocations: 47.57 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00174/0.2529, allocations: 1.489 MB / 378.1 MB, free: 44.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.254, allocations: 0.7059 MB / 378.8 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.2541, allocations: 2.156 kB / 378.8 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.2542, allocations: 21.67 kB / 378.8 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.2543, allocations: 23.84 kB / 378.8 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.2546, allocations: 76.5 kB / 378.9 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.2548, allocations: 164.6 kB / 379.1 MB, free: 43.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.2549, allocations: 68.58 kB / 379.1 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.2551, allocations: 58.62 kB / 379.2 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.2552, allocations: 72.77 kB / 379.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.2552, allocations: 4.562 kB / 379.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.181e-05/0.2553, allocations: 18.02 kB / 379.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.473e-05/0.2554, allocations: 29.7 kB / 379.3 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.131e-05/0.2555, allocations: 102 kB / 379.4 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.2556, allocations: 164.9 kB / 379.6 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2557, allocations: 0 / 379.6 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2557, allocations: 0 / 379.6 MB, free: 43.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2557, allocations: 4 kB / 379.6 MB, free: 43.27 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.0008047/0.2565, allocations: 490.2 kB / 380.1 MB, free: 42.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.2565, allocations: 9.656 kB / 380.1 MB, free: 42.81 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.2566, allocations: 27.94 kB / 380.1 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.2569, allocations: 245.3 kB / 380.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.2569, allocations: 10.78 kB / 380.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.58e-05/0.257, allocations: 19.38 kB / 380.4 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.2574, allocations: 215 kB / 380.6 MB, free: 42.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.2574, allocations: 5.375 kB / 380.6 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.2574, allocations: 9.25 kB / 380.6 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.2574, allocations: 8.969 kB / 380.6 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.2578, allocations: 143.6 kB / 380.7 MB, free: 42.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008656/0.2586, allocations: 0.7969 MB / 381.5 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.2592, allocations: 210.9 kB / 381.7 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.2594, allocations: 63.73 kB / 381.8 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.2594, allocations: 7.016 kB / 381.8 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002446/0.2597, allocations: 146.6 kB / 381.9 MB, free: 41.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 3.056e-06/0.2597, allocations: 4 kB / 382 MB, free: 41.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005692/0.2603, allocations: 258.5 kB / 382.2 MB, free: 41.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.2603, allocations: 79.77 kB / 382.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.2605, allocations: 224.1 kB / 382.5 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.2605, allocations: 36.11 kB / 382.5 MB, free: 40.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.176e-05/0.2606, allocations: 143.3 kB / 382.7 MB, free: 40.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.2606, allocations: 28.8 kB / 382.7 MB, free: 40.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-06/0.2606, allocations: 5.094 kB / 382.7 MB, free: 40.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.071e-05/0.2607, allocations: 335.8 kB / 383 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.2608, allocations: 68.27 kB / 383.1 MB, free: 40.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.261, allocations: 141.4 kB / 383.2 MB, free: 40.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.2613, allocations: 222.1 kB / 383.5 MB, free: 40.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2613, allocations: 1.156 kB / 383.5 MB, free: 40.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004082/0.2617, allocations: 259.9 kB / 383.7 MB, free: 39.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2617, allocations: 6.531 kB / 383.7 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2618, allocations: 2.281 kB / 383.7 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.2618, allocations: 3.344 kB / 383.7 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.2619, allocations: 45.59 kB / 383.8 MB, free: 39.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.262, allocations: 7.625 kB / 383.8 MB, free: 39.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.2621, allocations: 46.27 kB / 383.8 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.2622, allocations: 16.52 kB / 383.8 MB, free: 39.9 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 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],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.0001096/0.2623, allocations: 135.9 kB / 384 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.2623, allocations: 20.55 kB / 384 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002338/0.2626, allocations: 134 kB / 384.1 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2626, allocations: 2.469 kB / 384.1 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2626, allocations: 5.109 kB / 384.1 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.2626, allocations: 4 kB / 384.1 MB, free: 39.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005424/0.2631, allocations: 481.7 kB / 384.6 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.2632, allocations: 0 / 384.6 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.2633, allocations: 19.61 kB / 384.6 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2633, allocations: 1.156 kB / 384.6 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.2633, allocations: 6.016 kB / 384.6 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.2633, allocations: 12.91 kB / 384.6 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2633, allocations: 1.125 kB / 384.6 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003575/0.2637, allocations: 295.6 kB / 384.9 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.2637, allocations: 97.8 kB / 385 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.119e-05/0.2638, allocations: 6.031 kB / 385 MB, free: 38.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.264, allocations: 30.19 kB / 385.1 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.622e-05/0.264, allocations: 24.22 kB / 385.1 MB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.2641, allocations: 5.75 kB / 385.1 MB, free: 38.87 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.307e-05/0.2642, allocations: 138.3 kB / 385.2 MB, free: 38.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2642, allocations: 1.062 kB / 385.2 MB, free: 38.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002794/0.2645, allocations: 47.11 kB / 385.3 MB, free: 38.75 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.0001324/0.2646, allocations: 111.1 kB / 385.4 MB, free: 38.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003717/0.265, allocations: 184.2 kB / 385.6 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.265, allocations: 192 / 385.6 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.2652, allocations: 85.7 kB / 385.6 MB, free: 38.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.2655, allocations: 27.5 kB / 385.7 MB, free: 38.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005829/0.2661, allocations: 432.6 kB / 386.1 MB, free: 38.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.2663, allocations: 0.7272 MB / 386.8 MB, free: 37.49 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000106/0.2664, allocations: 42.03 kB / 386.9 MB, free: 37.47 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.487e-05/0.2664, allocations: 22.56 kB / 386.9 MB, free: 37.46 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2664, allocations: 0 / 386.9 MB, free: 37.46 MB / 298.7 MB Notification: Performance of Templates: time 0.003995/0.2704, allocations: 1.843 MB / 388.7 MB, free: 35.85 MB / 298.7 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