Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.00142/0.00142, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.001552/0.001552, allocations: 215.3 kB / 23 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 230.2 MB / 256.2 MB, free: 8.539 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00289/0.00289, allocations: 71.88 kB / 376.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3083, allocations: 53.32 MB / 429.8 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003391/0.3117, allocations: 1.86 MB / 431.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.313, allocations: 0.705 MB / 432.4 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.3131, allocations: 7.938 kB / 432.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.3133, allocations: 31.66 kB / 432.4 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.3134, allocations: 31.72 kB / 432.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.3137, allocations: 91.78 kB / 432.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002587/0.314, allocations: 187.4 kB / 432.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.3141, allocations: 46.67 kB / 432.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.3143, allocations: 87.62 kB / 432.8 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.3145, allocations: 83.61 kB / 432.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.3145, allocations: 12 kB / 432.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.273e-05/0.3146, allocations: 35.97 kB / 433 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.3147, allocations: 39.84 kB / 433 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.3148, allocations: 87.47 kB / 433.1 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002995/0.3151, allocations: 208.5 kB / 433.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3151, allocations: 0 / 433.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3151, allocations: 4 kB / 433.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.3151, allocations: 0 / 433.3 MB, free: 4.188 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.0009534/0.3161, allocations: 0.514 MB / 433.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3161, allocations: 12.03 kB / 433.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.3162, allocations: 32.78 kB / 433.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.3166, allocations: 257.6 kB / 434.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.3166, allocations: 16.31 kB / 434.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.3166, allocations: 16.38 kB / 434.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/0.317, allocations: 209.6 kB / 434.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.317, allocations: 0 / 434.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.3171, allocations: 8 kB / 434.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.3171, allocations: 8 kB / 434.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.3174, allocations: 139.8 kB / 434.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.3186, allocations: 0.7895 MB / 435.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000596/0.3192, allocations: 178.6 kB / 435.4 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.3193, allocations: 60.83 kB / 435.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.3193, allocations: 4 kB / 435.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.3196, allocations: 137 kB / 435.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.3196, allocations: 4 kB / 435.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005879/0.3202, allocations: 253.3 kB / 435.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.3203, allocations: 81.11 kB / 436 MB, free: 1.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.3205, allocations: 227 kB / 436.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.3205, allocations: 33.7 kB / 436.2 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.3206, allocations: 132.4 kB / 436.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.089e-05/0.3207, allocations: 43.72 kB / 436.4 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.698e-05/0.3207, allocations: 57.64 kB / 436.5 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3209, allocations: 338.8 kB / 436.8 MB, free: 432 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.3211, allocations: 67.95 kB / 436.9 MB, free: 364 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.3213, allocations: 132.5 kB / 437 MB, free: 200 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003703/0.3217, allocations: 220.7 kB / 437.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3217, allocations: 4 kB / 437.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004562/0.3221, allocations: 245.1 kB / 437.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3221, allocations: 4.375 kB / 437.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3221, allocations: 12.23 kB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.3222, allocations: 4 kB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.3223, allocations: 39.91 kB / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3223, allocations: 7.938 kB / 437.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.3225, allocations: 31.83 kB / 437.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.3225, allocations: 15.94 kB / 437.6 MB, free: 15.59 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.0001713/0.3227, allocations: 152 kB / 437.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.3227, allocations: 15.91 kB / 437.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.323, allocations: 131 kB / 437.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.323, allocations: 4 kB / 437.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.323, allocations: 0 / 437.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.323, allocations: 0 / 437.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006979/0.3237, allocations: 482.2 kB / 438.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.3237, allocations: 0 / 438.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.3239, allocations: 31.92 kB / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3239, allocations: 0 / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.3239, allocations: 0 / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.3239, allocations: 7.938 kB / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3239, allocations: 3.984 kB / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004521/0.3243, allocations: 286.9 kB / 438.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.922e-05/0.3244, allocations: 93.02 kB / 438.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.3245, allocations: 16 kB / 438.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.3246, allocations: 19.91 kB / 438.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.666e-05/0.3247, allocations: 19.98 kB / 438.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/0.3247, allocations: 11.92 kB / 438.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001668/0.3249, allocations: 152.6 kB / 439 MB, free: 14.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3249, allocations: 0 / 439 MB, free: 14.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.3252, allocations: 39.89 kB / 439 MB, free: 14.04 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.0001945/0.3254, allocations: 115.2 kB / 439.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004465/0.3259, allocations: 164 kB / 439.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3259, allocations: 0 / 439.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.3261, allocations: 76.33 kB / 439.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.3264, allocations: 35.97 kB / 439.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007606/0.3272, allocations: 369.2 kB / 439.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.3276, allocations: 0.7398 MB / 440.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.844e-05/0.3277, allocations: 33.52 kB / 440.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.476e-05/0.3278, allocations: 23.42 kB / 440.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3278, allocations: 0 / 440.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Templates: time 0.005876/0.3337, allocations: 2.153 MB / 442.7 MB, free: 10.3 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.601316423155367]