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.0008199/0.0008199, allocations: 67.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.001122/0.001122, allocations: 161.9 kB / 24.99 MB, free: 9.324 MB / 18.57 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 1.122/1.122, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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 1.412e-06/1.412e-06, allocations: 0 / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.575e-05/2.716e-05, allocations: 6.312 kB / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002401/0.002429, allocations: 1.867 MB / 274.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009368/0.003365, allocations: 0.6814 MB / 275.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.00347, allocations: 7.938 kB / 275.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.003603, allocations: 35.61 kB / 275.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.003756, allocations: 31.72 kB / 275.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.004086, allocations: 95.64 kB / 275.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000197/0.004283, allocations: 175.4 kB / 275.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.004433, allocations: 57.31 kB / 276 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.004624, allocations: 115.7 kB / 276.1 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.004783, allocations: 67.78 kB / 276.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.692e-05/0.00482, allocations: 12 kB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.689e-05/0.004907, allocations: 27.98 kB / 276.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.993e-05/0.004967, allocations: 47.83 kB / 276.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.307e-05/0.00503, allocations: 51.83 kB / 276.3 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.005257, allocations: 167.2 kB / 276.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.00526, allocations: 4 kB / 276.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.005261, allocations: 0 / 276.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.005265, allocations: 0 / 276.5 MB, free: 14.41 MB / 266.7 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.000613/0.005878, allocations: 0.527 MB / 277 MB, free: 13.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.005925, allocations: 8.031 kB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.006066, allocations: 48.72 kB / 277.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.006285, allocations: 197.8 kB / 277.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.006308, allocations: 16.31 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.006328, allocations: 16.36 kB / 277.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002511/0.006579, allocations: 193.9 kB / 277.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.006586, allocations: 192 / 277.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.006602, allocations: 8.375 kB / 277.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.006626, allocations: 11.92 kB / 277.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.006747, allocations: 67.89 kB / 277.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000685/0.007432, allocations: 0.8434 MB / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.007735, allocations: 139.1 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.236e-05/0.007787, allocations: 27.67 kB / 278.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.007817, allocations: 4 kB / 278.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.007965, allocations: 124.4 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.007966, allocations: 0 / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002873/0.008253, allocations: 161.4 kB / 278.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002189/0.008472, allocations: 81.11 kB / 278.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.008625, allocations: 274.6 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.00864, allocations: 25.7 kB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.008731, allocations: 199 kB / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.008758, allocations: 31.73 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-05/0.008824, allocations: 67.34 kB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.008954, allocations: 0.4962 MB / 280 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.167e-05/0.009016, allocations: 31.97 kB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.009119, allocations: 133.4 kB / 280.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.009278, allocations: 172.7 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.009282, allocations: 3.938 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002117/0.009493, allocations: 185.3 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.009508, allocations: 6.5 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.009515, allocations: 12.23 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.009529, allocations: 4 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.009638, allocations: 43.91 kB / 280.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.009654, allocations: 11.92 kB / 280.6 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.004e-05/0.009724, allocations: 27.88 kB / 280.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.009736, allocations: 8 kB / 280.6 MB, free: 9.91 MB / 266.7 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.0001088/0.009845, allocations: 182.4 kB / 280.8 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.499e-05/0.00987, allocations: 23.91 kB / 280.8 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.01004, allocations: 115.1 kB / 280.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.01004, allocations: 3.938 kB / 281 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.01004, allocations: 0 / 281 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.01005, allocations: 0 / 281 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003519/0.0104, allocations: 433.1 kB / 281.4 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.0104, allocations: 0 / 281.4 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.073e-05/0.01045, allocations: 20.3 kB / 281.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.01045, allocations: 0 / 281.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.01047, allocations: 8 kB / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.01047, allocations: 0 / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01047, allocations: 0 / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.01067, allocations: 307.2 kB / 281.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.489e-05/0.01069, allocations: 11.91 kB / 281.7 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.01071, allocations: 4 kB / 281.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.183e-05/0.01077, allocations: 11.98 kB / 281.7 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.01083, allocations: 19.97 kB / 281.7 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.01085, allocations: 11.98 kB / 281.8 MB, free: 8.703 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.563e-05/0.01093, allocations: 173.4 kB / 281.9 MB, free: 8.535 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01093, allocations: 4 kB / 281.9 MB, free: 8.531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001912/0.01112, allocations: 43.89 kB / 282 MB, free: 8.488 MB / 266.7 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.0001247/0.01124, allocations: 115.1 kB / 282.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.01144, allocations: 121.5 kB / 282.2 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01144, allocations: 0 / 282.2 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.389e-05/0.01151, allocations: 51.59 kB / 282.3 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002398/0.01175, allocations: 32.33 kB / 282.3 MB, free: 8.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007243/0.01248, allocations: 353.4 kB / 282.6 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.432e-05/0.01252, allocations: 75.98 kB / 282.7 MB, free: 7.691 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.61e-05/0.01259, allocations: 29.45 kB / 282.7 MB, free: 7.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.964e-05/0.01264, allocations: 32.42 kB / 282.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01264, allocations: 0 / 282.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of Templates: time 0.004184/0.01682, allocations: 2.187 MB / 285 MB, free: 5.469 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.003907975042239]