Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001715/0.001715, allocations: 89.02 kB / 21.44 MB, free: 276 kB / 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.00183/0.00183, allocations: 161.4 kB / 24.7 MB, free: 3.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 158.6 MB / 186.5 MB, free: 6.387 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 3.938 kB / 298.9 MB, free: 8.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.046e-05/3.243e-05, allocations: 2.281 kB / 298.9 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003161/0.003193, allocations: 1.782 MB / 300.7 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.004483, allocations: 0.6396 MB / 301.4 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.59e-05/0.004578, allocations: 4 kB / 301.4 MB, free: 6.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.004716, allocations: 35.61 kB / 301.4 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.004871, allocations: 27.73 kB / 301.4 MB, free: 6.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.005234, allocations: 87.7 kB / 301.5 MB, free: 6.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002825/0.005516, allocations: 183.3 kB / 301.7 MB, free: 5.941 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.005688, allocations: 43.02 kB / 301.7 MB, free: 5.898 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.005856, allocations: 107.8 kB / 301.8 MB, free: 5.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.006001, allocations: 67.78 kB / 301.9 MB, free: 5.727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.006039, allocations: 15.94 kB / 301.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.898e-05/0.006118, allocations: 24 kB / 301.9 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.01e-05/0.006188, allocations: 43.83 kB / 302 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.834e-05/0.006267, allocations: 59.77 kB / 302 MB, free: 5.586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.006577, allocations: 211.2 kB / 302.3 MB, free: 5.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.006583, allocations: 3.984 kB / 302.3 MB, free: 5.375 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.006583, allocations: 0 / 302.3 MB, free: 5.375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.006594, allocations: 0 / 302.3 MB, free: 5.375 MB / 286.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.001063/0.007657, allocations: 445 kB / 302.7 MB, free: 4.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.007701, allocations: 15.98 kB / 302.7 MB, free: 4.895 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.872e-05/0.007759, allocations: 24.8 kB / 302.7 MB, free: 4.871 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.008085, allocations: 185.3 kB / 302.9 MB, free: 4.664 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.008107, allocations: 16.36 kB / 302.9 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.008139, allocations: 12.38 kB / 302.9 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.008581, allocations: 202.1 kB / 303.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.008595, allocations: 4.188 kB / 303.1 MB, free: 4.418 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.008617, allocations: 4.375 kB / 303.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.97e-05/0.008646, allocations: 19.86 kB / 303.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.008994, allocations: 143.9 kB / 303.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.01009, allocations: 0.6683 MB / 304 MB, free: 3.543 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000683/0.01077, allocations: 190.6 kB / 304.2 MB, free: 3.348 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.01092, allocations: 60.81 kB / 304.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.01096, allocations: 4 kB / 304.2 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.01125, allocations: 144.9 kB / 304.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.01126, allocations: 4 kB / 304.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006344/0.01189, allocations: 245.4 kB / 304.6 MB, free: 2.871 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.01195, allocations: 89.09 kB / 304.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.01217, allocations: 208.8 kB / 304.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.0122, allocations: 29.7 kB / 304.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.01232, allocations: 144.3 kB / 305.1 MB, free: 2.375 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.01236, allocations: 39.73 kB / 305.1 MB, free: 2.336 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.014e-05/0.01245, allocations: 61.64 kB / 305.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.0126, allocations: 330.8 kB / 305.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.01277, allocations: 67.95 kB / 305.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.01297, allocations: 132.9 kB / 305.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003742/0.01335, allocations: 216.3 kB / 305.9 MB, free: 1.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.01335, allocations: 3.938 kB / 305.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004672/0.01382, allocations: 253.2 kB / 306.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.01384, allocations: 4 kB / 306.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.01384, allocations: 4 kB / 306.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.01386, allocations: 4 kB / 306.2 MB, free: 1.199 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.01406, allocations: 39.91 kB / 306.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.01407, allocations: 4 kB / 306.2 MB, free: 1.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.01427, allocations: 36.08 kB / 306.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.01429, allocations: 8 kB / 306.3 MB, free: 1.113 MB / 286.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.0001691/0.01446, allocations: 151.7 kB / 306.4 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.604e-05/0.0145, allocations: 15.91 kB / 306.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002892/0.01479, allocations: 135 kB / 306.5 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.01479, allocations: 0 / 306.5 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.0148, allocations: 4 kB / 306.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.0148, allocations: 3.984 kB / 306.6 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006272/0.01543, allocations: 405.9 kB / 307 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.01543, allocations: 8.25 kB / 307 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.01555, allocations: 19.92 kB / 307 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.01556, allocations: 0 / 307 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.01558, allocations: 8 kB / 307 MB, free: 332 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01558, allocations: 0 / 307 MB, free: 332 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.01558, allocations: 3.984 kB / 307 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.01604, allocations: 292 kB / 307.3 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.551e-05/0.01606, allocations: 15.84 kB / 307.3 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.48e-05/0.0161, allocations: 8.047 kB / 307.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.01627, allocations: 19.97 kB / 307.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/0.01636, allocations: 23.91 kB / 307.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.01638, allocations: 8 kB / 307.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001276/0.01651, allocations: 140.5 kB / 307.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01651, allocations: 192 / 307.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.01682, allocations: 39.95 kB / 307.5 MB, free: 15.77 MB / 302.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.0001819/0.017, allocations: 123 kB / 307.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004293/0.01743, allocations: 159.7 kB / 307.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.01743, allocations: 0 / 307.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.01764, allocations: 75.89 kB / 307.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.01801, allocations: 28.47 kB / 307.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007858/0.0188, allocations: 355.6 kB / 308.3 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.01895, allocations: 120.9 kB / 308.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001/0.01905, allocations: 33.47 kB / 308.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.489e-05/0.01911, allocations: 24.48 kB / 308.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01911, allocations: 0 / 308.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Templates: time 0.006187/0.0253, allocations: 2.141 MB / 310.6 MB, free: 12.67 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.437596864998341]