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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 106.9 kB / 17.74 MB, free: 5.363 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.001117/0.001117, allocations: 192.5 kB / 18.67 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009681/0.0009681, allocations: 43.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2476, allocations: 49.45 MB / 401.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002837/0.2505, allocations: 1.819 MB / 403.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.2517, allocations: 0.627 MB / 403.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.931e-05/0.2518, allocations: 4 kB / 403.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.2519, allocations: 23.67 kB / 403.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.2521, allocations: 31.72 kB / 403.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.2524, allocations: 95.72 kB / 404 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002327/0.2526, allocations: 175.4 kB / 404.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.2528, allocations: 74.62 kB / 404.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.2529, allocations: 67.72 kB / 404.3 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.2531, allocations: 91.53 kB / 404.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.2531, allocations: 16 kB / 404.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.879e-05/0.2532, allocations: 19.98 kB / 404.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.113e-05/0.2533, allocations: 47.84 kB / 404.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.892e-05/0.2534, allocations: 83.52 kB / 404.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.2536, allocations: 196.8 kB / 404.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2536, allocations: 0 / 404.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2536, allocations: 4 kB / 404.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.2537, allocations: 4 kB / 404.8 MB, free: 5.465 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.0008605/0.2545, allocations: 0.4944 MB / 405.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2546, allocations: 11.97 kB / 405.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.764e-05/0.2546, allocations: 24.66 kB / 405.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.2549, allocations: 252.4 kB / 405.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.255, allocations: 12.38 kB / 405.6 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.255, allocations: 19.94 kB / 405.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.2554, allocations: 210.2 kB / 405.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2554, allocations: 0 / 405.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.2554, allocations: 8 kB / 405.8 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.2555, allocations: 8 kB / 405.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.2558, allocations: 143.7 kB / 405.9 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.2568, allocations: 0.7932 MB / 406.7 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006107/0.2575, allocations: 186.7 kB / 406.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.2576, allocations: 64.83 kB / 407 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.2577, allocations: 7.984 kB / 407 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.2579, allocations: 144.9 kB / 407.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.258, allocations: 0 / 407.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005743/0.2585, allocations: 245.3 kB / 407.4 MB, free: 2.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.2586, allocations: 89.41 kB / 407.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.2588, allocations: 214.8 kB / 407.7 MB, free: 2.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.2588, allocations: 29.7 kB / 407.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.659e-05/0.2589, allocations: 152.1 kB / 407.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/0.259, allocations: 31.62 kB / 407.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.414e-05/0.2591, allocations: 61.61 kB / 407.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.2592, allocations: 334.8 kB / 408.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.2594, allocations: 63.95 kB / 408.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.2596, allocations: 132.5 kB / 408.4 MB, free: 1.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.2599, allocations: 212.4 kB / 408.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.2599, allocations: 0 / 408.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004409/0.2604, allocations: 249.1 kB / 408.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.2604, allocations: 8 kB / 408.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2604, allocations: 0 / 408.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.2605, allocations: 12.23 kB / 408.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.2606, allocations: 35.92 kB / 409 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.2607, allocations: 7.938 kB / 409 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.2608, allocations: 35.75 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.2609, allocations: 8 kB / 409 MB, free: 0.8984 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.0001444/0.261, allocations: 148 kB / 409.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.2611, allocations: 27.72 kB / 409.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002474/0.2613, allocations: 131 kB / 409.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2613, allocations: 4 kB / 409.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2613, allocations: 4.25 kB / 409.3 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2614, allocations: 0 / 409.3 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005769/0.2619, allocations: 478.3 kB / 409.8 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.2619, allocations: 0 / 409.8 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.2621, allocations: 23.97 kB / 409.8 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2621, allocations: 11.88 kB / 409.8 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.2621, allocations: 0 / 409.8 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2621, allocations: 4 kB / 409.8 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2621, allocations: 0 / 409.8 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004117/0.2625, allocations: 287.4 kB / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/0.2626, allocations: 104.7 kB / 410.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/0.2627, allocations: 11.98 kB / 410.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.2628, allocations: 15.98 kB / 410.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.254e-05/0.2629, allocations: 19.97 kB / 410.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.263, allocations: 4 kB / 410.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001189/0.2631, allocations: 148.6 kB / 410.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2631, allocations: 4 kB / 410.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003116/0.2634, allocations: 35.91 kB / 410.4 MB, free: 15.36 MB / 334.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.0001406/0.2635, allocations: 119.1 kB / 410.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003893/0.2639, allocations: 167.9 kB / 410.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.264, allocations: 0 / 410.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.2641, allocations: 75.89 kB / 410.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.2645, allocations: 36.62 kB / 410.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006622/0.2652, allocations: 403.2 kB / 411.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.2655, allocations: 0.7319 MB / 411.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.826e-05/0.2656, allocations: 27.42 kB / 412 MB, free: 13.74 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2656, allocations: 0 / 412 MB, free: 13.74 MB / 334.1 MB Notification: Performance of Templates: time 0.004168/0.2697, allocations: 2.456 MB / 414.4 MB, free: 11.29 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches