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.002125/0.002125, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002283/0.002283, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 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.505/1.505, allocations: 177.2 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.402e-06/1.402e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.517e-05/2.657e-05, allocations: 6.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003623/0.003649, allocations: 1.816 MB / 274.1 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.005109, allocations: 0.662 MB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.005238, allocations: 7.938 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.005379, allocations: 27.61 kB / 274.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.005524, allocations: 31.72 kB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003631/0.005887, allocations: 103.6 kB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.006193, allocations: 187.3 kB / 275.1 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.006366, allocations: 49.66 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/0.006633, allocations: 115.7 kB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.006795, allocations: 59.8 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.006837, allocations: 16 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.471e-05/0.006921, allocations: 27.98 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.913e-05/0.007001, allocations: 47.83 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.007107, allocations: 51.83 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.007456, allocations: 211.2 kB / 275.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.007459, allocations: 4 kB / 275.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.00746, allocations: 0 / 275.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.007467, allocations: 4 kB / 275.7 MB, free: 14.39 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.001067/0.008534, allocations: 441.2 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.008575, allocations: 12.03 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.008791, allocations: 44.78 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003494/0.00914, allocations: 187.1 kB / 276.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.009164, allocations: 16.38 kB / 276.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/0.009194, allocations: 16.38 kB / 276.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.009642, allocations: 209.8 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.009654, allocations: 192 / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.009677, allocations: 8.375 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.548e-05/0.009703, allocations: 11.92 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/0.01009, allocations: 143.8 kB / 276.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.01134, allocations: 0.6799 MB / 277.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000679/0.01201, allocations: 186.6 kB / 277.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.01219, allocations: 52.83 kB / 277.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.01223, allocations: 7.938 kB / 277.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003064/0.01254, allocations: 152.9 kB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.01254, allocations: 0 / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000698/0.01324, allocations: 249.4 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.01331, allocations: 89.05 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.01356, allocations: 215.7 kB / 278.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.01359, allocations: 29.7 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.01373, allocations: 148.3 kB / 278.6 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.772e-05/0.01377, allocations: 39.73 kB / 278.6 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.01389, allocations: 53.7 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.01408, allocations: 330.8 kB / 279 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.01426, allocations: 67.95 kB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.0145, allocations: 137.2 kB / 279.2 MB, free: 10.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.01493, allocations: 212.6 kB / 279.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.01493, allocations: 3.938 kB / 279.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005482/0.01548, allocations: 261.4 kB / 279.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.0155, allocations: 8.062 kB / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.0155, allocations: 7.938 kB / 279.7 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.01553, allocations: 4 kB / 279.7 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.01572, allocations: 39.91 kB / 279.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.01573, allocations: 0 / 279.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.01593, allocations: 35.86 kB / 279.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.01595, allocations: 8 kB / 279.8 MB, free: 10.09 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.0001704/0.01612, allocations: 159.7 kB / 279.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.01639, allocations: 19.91 kB / 279.9 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002858/0.01668, allocations: 135 kB / 280.1 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01668, allocations: 0 / 280.1 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.01669, allocations: 4 kB / 280.1 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.01669, allocations: 0 / 280.1 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006802/0.01737, allocations: 405.9 kB / 280.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01737, allocations: 0 / 280.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.0175, allocations: 23.91 kB / 280.5 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.0175, allocations: 0 / 280.5 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.01752, allocations: 8 kB / 280.5 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.01752, allocations: 0 / 280.5 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01752, allocations: 0 / 280.5 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005329/0.01806, allocations: 296 kB / 280.8 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.547e-05/0.01809, allocations: 23.86 kB / 280.8 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.229e-05/0.01812, allocations: 8.047 kB / 280.8 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.0183, allocations: 19.98 kB / 280.8 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.597e-05/0.01839, allocations: 19.97 kB / 280.9 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.01841, allocations: 11.98 kB / 280.9 MB, free: 8.906 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001467/0.01856, allocations: 141.5 kB / 281 MB, free: 8.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01856, allocations: 0 / 281 MB, free: 8.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003535/0.01891, allocations: 47.89 kB / 281 MB, free: 8.723 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.0001805/0.01909, allocations: 107.2 kB / 281.2 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004449/0.01954, allocations: 164.1 kB / 281.3 MB, free: 8.445 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.01954, allocations: 4.062 kB / 281.3 MB, free: 8.441 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002253/0.01976, allocations: 80.39 kB / 281.4 MB, free: 8.363 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.02014, allocations: 28.17 kB / 281.4 MB, free: 8.336 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008204/0.02096, allocations: 368.8 kB / 281.8 MB, free: 7.949 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.02111, allocations: 128.9 kB / 281.9 MB, free: 7.805 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.02123, allocations: 33.45 kB / 281.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.96e-05/0.02131, allocations: 24.48 kB / 282 MB, free: 7.742 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.02131, allocations: 0 / 282 MB, free: 7.742 MB / 266.7 MB Notification: Performance of Templates: time 0.006604/0.02791, allocations: 2.179 MB / 284.1 MB, free: 5.594 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=480 -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/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_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: 4.37126465793699]