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.00122/0.00122, allocations: 115.1 kB / 17.07 MB, free: 5.773 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.001192/0.001192, allocations: 195.9 kB / 18 MB, free: 4.953 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.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 52.02 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3284, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003146/0.3316, allocations: 1.821 MB / 402.5 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.3328, allocations: 0.6309 MB / 403.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.3329, allocations: 4 kB / 403.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.3331, allocations: 31.67 kB / 403.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.3333, allocations: 31.72 kB / 403.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.3336, allocations: 83.8 kB / 403.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002496/0.3338, allocations: 183.4 kB / 403.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.3341, allocations: 66.64 kB / 403.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.3342, allocations: 79.69 kB / 403.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.3344, allocations: 87.55 kB / 403.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.878e-05/0.3344, allocations: 12 kB / 403.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.693e-05/0.3345, allocations: 20 kB / 403.8 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.894e-05/0.3346, allocations: 51.83 kB / 403.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.455e-05/0.3347, allocations: 75.53 kB / 403.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.3349, allocations: 200.8 kB / 404.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3349, allocations: 0 / 404.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.335, allocations: 0 / 404.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.335, allocations: 4 kB / 404.1 MB, free: 5.492 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.000911/0.3359, allocations: 0.505 MB / 404.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3359, allocations: 11.97 kB / 404.6 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.91e-05/0.336, allocations: 24.66 kB / 404.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.3363, allocations: 252.3 kB / 404.9 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.3363, allocations: 16.38 kB / 404.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.3364, allocations: 15.94 kB / 404.9 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000385/0.3367, allocations: 214.2 kB / 405.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.3368, allocations: 0 / 405.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.3368, allocations: 11.98 kB / 405.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.3368, allocations: 4 kB / 405.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003176/0.3371, allocations: 151.7 kB / 405.3 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.3382, allocations: 0.7815 MB / 406 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005883/0.3388, allocations: 186.7 kB / 406.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.3389, allocations: 64.83 kB / 406.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.201e-05/0.339, allocations: 3.984 kB / 406.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.3393, allocations: 148.2 kB / 406.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.3393, allocations: 0 / 406.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005837/0.3399, allocations: 245.3 kB / 406.7 MB, free: 2.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.794e-05/0.3399, allocations: 85.05 kB / 406.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.3402, allocations: 226.7 kB / 407 MB, free: 2.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.3402, allocations: 29.7 kB / 407 MB, free: 2.316 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.13e-05/0.3403, allocations: 144.2 kB / 407.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.212e-05/0.3403, allocations: 27.7 kB / 407.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-05/0.3404, allocations: 61.59 kB / 407.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3405, allocations: 330.8 kB / 407.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.3407, allocations: 67.95 kB / 407.6 MB, free: 1.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.3409, allocations: 132.5 kB / 407.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.3412, allocations: 212.4 kB / 408 MB, free: 1.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.3413, allocations: 4 kB / 408 MB, free: 1.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004359/0.3417, allocations: 253.3 kB / 408.2 MB, free: 1.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3417, allocations: 4 kB / 408.2 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3417, allocations: 4 kB / 408.2 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.3418, allocations: 4.25 kB / 408.2 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.342, allocations: 44.3 kB / 408.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.342, allocations: 11.92 kB / 408.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.3422, allocations: 31.77 kB / 408.3 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.3422, allocations: 8 kB / 408.3 MB, free: 0.918 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.0001391/0.3423, allocations: 151.9 kB / 408.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.3424, allocations: 23.72 kB / 408.5 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002595/0.3426, allocations: 135 kB / 408.6 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3427, allocations: 4 kB / 408.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.3427, allocations: 3.938 kB / 408.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3427, allocations: 0 / 408.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006261/0.3433, allocations: 478.3 kB / 409.1 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3433, allocations: 0 / 409.1 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.3434, allocations: 15.98 kB / 409.1 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3435, allocations: 11.88 kB / 409.1 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.3435, allocations: 4 kB / 409.1 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3435, allocations: 0 / 409.1 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3435, allocations: 7.938 kB / 409.1 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000418/0.3439, allocations: 284.1 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.153e-05/0.344, allocations: 100.8 kB / 409.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.344, allocations: 7.984 kB / 409.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.3442, allocations: 23.97 kB / 409.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/0.3443, allocations: 15.98 kB / 409.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.3443, allocations: 7.984 kB / 409.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001181/0.3444, allocations: 144.6 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3444, allocations: 0 / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.3448, allocations: 39.91 kB / 409.8 MB, free: 15.38 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.0001775/0.3449, allocations: 119.1 kB / 409.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004005/0.3454, allocations: 167.8 kB / 410 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3454, allocations: 0 / 410 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.3455, allocations: 80.2 kB / 410.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.3459, allocations: 32.61 kB / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007068/0.3466, allocations: 369.5 kB / 410.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.3469, allocations: 0.728 MB / 411.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.363e-05/0.347, allocations: 37.52 kB / 411.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.995e-05/0.3471, allocations: 19.44 kB / 411.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3471, allocations: 0 / 411.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of Templates: time 0.00556/0.3527, allocations: 2.104 MB / 413.4 MB, free: 11.69 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/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