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.001834/0.001834, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002102/0.002102, allocations: 211.4 kB / 24.48 MB, free: 3.977 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 1.586/1.586, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 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 0.001572/0.001572, allocations: 55.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2272, allocations: 53.36 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003317/0.2306, allocations: 1.805 MB / 434.1 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.2319, allocations: 0.6699 MB / 434.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.74e-05/0.2319, allocations: 3.938 kB / 434.8 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.2321, allocations: 35.59 kB / 434.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.2322, allocations: 27.73 kB / 434.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.2325, allocations: 95.77 kB / 434.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.2328, allocations: 175.4 kB / 435.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.2329, allocations: 58.59 kB / 435.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.2331, allocations: 87.69 kB / 435.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.2333, allocations: 95.53 kB / 435.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.683e-05/0.2333, allocations: 16 kB / 435.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.885e-05/0.2334, allocations: 24 kB / 435.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.925e-05/0.2335, allocations: 39.84 kB / 435.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.789e-05/0.2336, allocations: 75.58 kB / 435.5 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.2338, allocations: 206 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2339, allocations: 3.984 kB / 435.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2339, allocations: 0 / 435.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.2339, allocations: 0 / 435.7 MB, free: 3.32 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.0009214/0.2348, allocations: 449.2 kB / 436.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.2348, allocations: 8.031 kB / 436.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.235, allocations: 32.78 kB / 436.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/0.2353, allocations: 191.8 kB / 436.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.2353, allocations: 12.38 kB / 436.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.2353, allocations: 20.38 kB / 436.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.2358, allocations: 218.6 kB / 436.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2358, allocations: 0 / 436.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.2358, allocations: 4 kB / 436.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.2358, allocations: 8 kB / 436.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003569/0.2362, allocations: 139.8 kB / 436.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.2373, allocations: 0.6878 MB / 437.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006427/0.2379, allocations: 182.6 kB / 437.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.2381, allocations: 60.75 kB / 437.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.2381, allocations: 4 kB / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003017/0.2384, allocations: 159.3 kB / 437.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.2384, allocations: 0 / 437.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006211/0.239, allocations: 241.5 kB / 438.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.2391, allocations: 89.03 kB / 438.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.2393, allocations: 215.7 kB / 438.4 MB, free: 476 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.2393, allocations: 25.7 kB / 438.4 MB, free: 444 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.2395, allocations: 152.2 kB / 438.6 MB, free: 288 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.2395, allocations: 31.73 kB / 438.6 MB, free: 256 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-05/0.2396, allocations: 61.69 kB / 438.7 MB, free: 188 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.2398, allocations: 338.8 kB / 439 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.2399, allocations: 72.02 kB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.2402, allocations: 140.5 kB / 439.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.2405, allocations: 204.4 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2406, allocations: 3.938 kB / 439.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004981/0.2411, allocations: 249.2 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2411, allocations: 8.25 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2411, allocations: 8 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.2411, allocations: 4 kB / 439.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.2413, allocations: 35.91 kB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.2413, allocations: 4 kB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.2415, allocations: 35.86 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.2415, allocations: 4 kB / 439.7 MB, free: 15.02 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.0001608/0.2417, allocations: 155.7 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.2417, allocations: 19.91 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.242, allocations: 131 kB / 440 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.242, allocations: 0 / 440 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.242, allocations: 4 kB / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.242, allocations: 0 / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006095/0.2426, allocations: 402.4 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2426, allocations: 4 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.2427, allocations: 19.92 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.2427, allocations: 96 / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.2428, allocations: 15.92 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2428, allocations: 4.062 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2428, allocations: 4 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004759/0.2432, allocations: 288.1 kB / 440.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.829e-05/0.2433, allocations: 15.84 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.528e-05/0.2433, allocations: 4 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.2435, allocations: 23.91 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.2436, allocations: 23.91 kB / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.2436, allocations: 8 kB / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.2437, allocations: 153.4 kB / 441 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2437, allocations: 0 / 441 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000312/0.244, allocations: 39.95 kB / 441 MB, free: 13.66 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.0001537/0.2442, allocations: 111.2 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004143/0.2446, allocations: 156.3 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2446, allocations: 0 / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.2448, allocations: 79.89 kB / 441.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.2451, 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.000703/0.2458, allocations: 369.8 kB / 441.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001363/0.246, allocations: 124.9 kB / 441.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.2461, 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 7.049e-05/0.2462, allocations: 27.42 kB / 441.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2462, allocations: 0 / 441.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Templates: time 0.005872/0.252, allocations: 2.312 MB / 444.2 MB, free: 10.43 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 gbode -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: 4.4411215809959685]