Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002187/0.002187, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.208/2.208, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 177] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 59.91 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3546, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003818/0.3584, allocations: 1.812 MB / 434.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.36, allocations: 0.6738 MB / 434.8 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.3602, allocations: 3.938 kB / 434.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.3603, allocations: 27.67 kB / 434.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.3605, allocations: 35.66 kB / 434.9 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.3609, allocations: 95.77 kB / 435 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003029/0.3612, allocations: 171.5 kB / 435.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.3614, allocations: 62.58 kB / 435.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.3616, allocations: 83.7 kB / 435.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.3618, allocations: 95.48 kB / 435.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.14e-05/0.3619, allocations: 16 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.284e-05/0.362, allocations: 27.98 kB / 435.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.362, allocations: 39.84 kB / 435.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.3621, allocations: 75.58 kB / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003475/0.3625, allocations: 206 kB / 435.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3625, allocations: 0 / 435.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3625, allocations: 0 / 435.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.3625, allocations: 0 / 435.7 MB, free: 3.309 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.001104/0.3636, allocations: 453.2 kB / 436.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3636, allocations: 8.031 kB / 436.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002128/0.3639, allocations: 32.78 kB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.3642, allocations: 191.8 kB / 436.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.3643, allocations: 12.38 kB / 436.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.3643, allocations: 20.38 kB / 436.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.3648, allocations: 218.6 kB / 436.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3648, allocations: 0 / 436.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.3648, allocations: 4 kB / 436.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.3649, allocations: 8 kB / 436.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004363/0.3653, allocations: 135.8 kB / 436.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.3666, allocations: 0.684 MB / 437.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007806/0.3673, allocations: 178.6 kB / 437.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.3675, allocations: 56.81 kB / 437.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.3676, allocations: 4 kB / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.3679, allocations: 160.8 kB / 437.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.3679, allocations: 0 / 437.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007594/0.3687, allocations: 241.4 kB / 438.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.3688, allocations: 81.11 kB / 438.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.369, allocations: 219.7 kB / 438.4 MB, free: 476 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.3691, allocations: 25.7 kB / 438.4 MB, free: 444 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.3692, allocations: 148.3 kB / 438.6 MB, free: 292 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.83e-05/0.3692, allocations: 35.72 kB / 438.6 MB, free: 256 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.3694, allocations: 65.69 kB / 438.7 MB, free: 184 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.3695, allocations: 330.8 kB / 439 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.3698, allocations: 67.95 kB / 439 MB, free: 15.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002656/0.37, allocations: 140.5 kB / 439.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.3705, allocations: 212.6 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3705, allocations: 0 / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006204/0.3711, allocations: 249.2 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3711, allocations: 8.25 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.3711, allocations: 8 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3712, allocations: 4 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.3714, allocations: 35.91 kB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.3714, allocations: 7.938 kB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.3716, allocations: 31.88 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.3716, allocations: 4 kB / 439.7 MB, free: 15.03 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.0001893/0.3718, allocations: 159.7 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.046e-05/0.3719, allocations: 19.91 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003134/0.3722, allocations: 127 kB / 440 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3722, allocations: 3.938 kB / 440 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.3722, allocations: 4.469 kB / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3722, allocations: 3.984 kB / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007598/0.373, allocations: 405.8 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.373, allocations: 4 kB / 440.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.3731, allocations: 15.98 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3731, allocations: 0 / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.3731, allocations: 12 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3731, allocations: 0 / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3731, allocations: 3.984 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005704/0.3737, allocations: 292.1 kB / 440.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.417e-05/0.3737, allocations: 15.84 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.3738, allocations: 4 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.374, allocations: 24.03 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.094e-05/0.3741, allocations: 27.84 kB / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.3741, allocations: 8 kB / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.3743, allocations: 145.5 kB / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3743, allocations: 0 / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004609/0.3748, allocations: 39.95 kB / 441 MB, free: 13.67 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.0001776/0.3749, allocations: 115.2 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005047/0.3754, allocations: 160.2 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3754, allocations: 4 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.3757, allocations: 75.89 kB / 441.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004611/0.3761, allocations: 23.98 kB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008488/0.377, allocations: 369.3 kB / 441.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.3772, allocations: 124.9 kB / 441.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001364/0.3773, allocations: 29.47 kB / 441.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.3774, allocations: 27.42 kB / 441.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3774, allocations: 0 / 441.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Templates: time 0.01969/0.3971, allocations: 2.307 MB / 444.2 MB, free: 10.42 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 6.996784703995218]