Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001564/0.001564, allocations: 113 kB / 21.18 MB, free: 0.5898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001914/0.001914, allocations: 209.7 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.507/1.507, allocations: 230.4 MB / 258.1 MB, free: 8.137 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 71.83 kB / 378.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3427, allocations: 53.31 MB / 432 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003443/0.3462, allocations: 1.871 MB / 433.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.3475, allocations: 0.6933 MB / 434.6 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.3477, allocations: 4 kB / 434.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.3478, allocations: 35.66 kB / 434.6 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.348, allocations: 35.66 kB / 434.7 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000373/0.3484, allocations: 99.7 kB / 434.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.3486, allocations: 179.5 kB / 435 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.3488, allocations: 46.66 kB / 435 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.349, allocations: 87.64 kB / 435.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000178/0.3492, allocations: 83.61 kB / 435.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.608e-05/0.3492, allocations: 15.94 kB / 435.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.701e-05/0.3493, allocations: 31.98 kB / 435.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.527e-05/0.3494, allocations: 47.83 kB / 435.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.722e-05/0.3495, allocations: 87.47 kB / 435.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.3498, allocations: 209 kB / 435.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3498, allocations: 0 / 435.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.3498, allocations: 0 / 435.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.3499, allocations: 0 / 435.5 MB, free: 3.824 MB / 334.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.001039/0.3509, allocations: 0.5101 MB / 436.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3509, allocations: 12.03 kB / 436.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.3511, allocations: 36.72 kB / 436.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.3514, allocations: 257.6 kB / 436.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.3515, allocations: 12.38 kB / 436.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.3515, allocations: 16.38 kB / 436.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.3519, allocations: 218 kB / 436.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3519, allocations: 3.938 kB / 436.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.3519, allocations: 4 kB / 436.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/0.352, allocations: 8 kB / 436.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003404/0.3523, allocations: 139.8 kB / 436.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.3534, allocations: 0.7779 MB / 437.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006321/0.3541, allocations: 182.6 kB / 437.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.3542, allocations: 60.83 kB / 437.8 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.235e-05/0.3543, allocations: 11.97 kB / 437.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.3545, allocations: 143.9 kB / 437.9 MB, free: 1.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.3545, allocations: 0 / 437.9 MB, free: 1.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005955/0.3551, allocations: 245.4 kB / 438.2 MB, free: 1.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.3552, allocations: 81.48 kB / 438.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.3554, allocations: 231 kB / 438.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.3555, allocations: 25.7 kB / 438.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.3556, allocations: 144.4 kB / 438.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.3556, allocations: 39.67 kB / 438.7 MB, free: 476 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.3557, allocations: 61.64 kB / 438.7 MB, free: 408 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3559, allocations: 334.8 kB / 439.1 MB, free: 64 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.3561, allocations: 68.02 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.3563, allocations: 136.4 kB / 439.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000357/0.3566, allocations: 212.4 kB / 439.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3566, allocations: 0 / 439.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004559/0.3571, allocations: 249.2 kB / 439.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3571, allocations: 8 kB / 439.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3571, allocations: 4.312 kB / 439.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3571, allocations: 0 / 439.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.3573, allocations: 43.91 kB / 439.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.3573, allocations: 7.938 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.3575, allocations: 36.08 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.3575, allocations: 11.94 kB / 439.8 MB, free: 15.23 MB / 350.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.0001547/0.3577, allocations: 156 kB / 440 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.3577, allocations: 15.91 kB / 440 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.3579, allocations: 127 kB / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3579, allocations: 0 / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.358, allocations: 7.922 kB / 440.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.358, allocations: 7.984 kB / 440.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006334/0.3586, allocations: 482.3 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3586, allocations: 0 / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.3587, allocations: 15.98 kB / 440.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.3587, allocations: 0 / 440.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.3587, allocations: 15.92 kB / 440.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.3587, allocations: 3.938 kB / 440.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3587, allocations: 0 / 440.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004368/0.3592, allocations: 296.2 kB / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.244e-05/0.3592, allocations: 92.95 kB / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.3593, allocations: 0 / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.3594, allocations: 27.91 kB / 441 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.172e-05/0.3595, allocations: 19.97 kB / 441.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.3595, allocations: 8 kB / 441.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.3597, allocations: 148.6 kB / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3597, allocations: 0 / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.36, allocations: 47.89 kB / 441.3 MB, free: 13.69 MB / 350.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.0001842/0.3602, allocations: 111.7 kB / 441.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000411/0.3606, allocations: 168.3 kB / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3606, allocations: 0 / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.3607, allocations: 67.89 kB / 441.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.3611, allocations: 32.5 kB / 441.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007659/0.3618, allocations: 403 kB / 442 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.3622, allocations: 0.7359 MB / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.736e-05/0.3623, allocations: 27.44 kB / 442.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3623, allocations: 0 / 442.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of Templates: time 0.004785/0.3671, allocations: 2.473 MB / 445.3 MB, free: 9.617 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.6954035009257495]