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.002585/0.002585, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.00307/0.00307, allocations: 165.3 kB / 24.27 MB, free: 152 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.592/1.592, allocations: 177.1 MB / 204.6 MB, free: 5.609 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.573e-06/1.573e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.841e-05/2.999e-05, allocations: 2.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003532/0.003562, allocations: 1.84 MB / 274.2 MB, free: 16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.004966, allocations: 0.6698 MB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.658e-05/0.005063, allocations: 7.938 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.005215, allocations: 39.59 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.005368, allocations: 35.72 kB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.005696, allocations: 91.66 kB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.005967, allocations: 187.3 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.006126, allocations: 46.98 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/0.006372, allocations: 111.7 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.006526, allocations: 67.78 kB / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.946e-05/0.006565, allocations: 12 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.413e-05/0.006659, allocations: 31.97 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.167e-05/0.006741, allocations: 47.83 kB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.94e-05/0.006831, allocations: 47.84 kB / 275.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.007205, allocations: 219.2 kB / 275.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.007208, allocations: 0 / 275.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007209, allocations: 0 / 275.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.007215, allocations: 0 / 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.00121/0.008425, allocations: 0.5343 MB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.008459, allocations: 8.031 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.008647, allocations: 44.78 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003394/0.008986, allocations: 193.9 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.009012, allocations: 12.38 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.743e-05/0.009039, allocations: 12.38 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.009451, allocations: 209.1 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.009463, allocations: 4.188 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.009481, allocations: 4.375 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.009506, allocations: 11.94 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.009794, allocations: 99.88 kB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.011, allocations: 0.8825 MB / 277.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005303/0.01153, allocations: 147.2 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.01166, allocations: 43.67 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.022e-05/0.0117, allocations: 4 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002815/0.01198, allocations: 155.4 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.01198, allocations: 4 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005792/0.01256, allocations: 193.5 kB / 278.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/0.01264, allocations: 85.05 kB / 278.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000312/0.01295, allocations: 302.6 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.363e-05/0.01299, allocations: 33.7 kB / 278.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.01315, allocations: 195 kB / 278.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.169e-05/0.01321, allocations: 39.73 kB / 278.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.01333, allocations: 75.34 kB / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002918/0.01362, allocations: 0.5079 MB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.01377, allocations: 47.98 kB / 279.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.01399, allocations: 149.5 kB / 279.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.01436, allocations: 201 kB / 279.9 MB, free: 9.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.01436, allocations: 7.875 kB / 279.9 MB, free: 9.898 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004461/0.01481, allocations: 217.3 kB / 280.1 MB, free: 9.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.01483, allocations: 8 kB / 280.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.01483, allocations: 3.938 kB / 280.1 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.01485, allocations: 4 kB / 280.1 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.01505, allocations: 43.92 kB / 280.2 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.01506, allocations: 4.25 kB / 280.2 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.0152, allocations: 27.88 kB / 280.2 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.01522, allocations: 8 kB / 280.2 MB, free: 9.582 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.000189/0.01541, allocations: 198.4 kB / 280.4 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.136e-05/0.01545, allocations: 19.91 kB / 280.4 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.01572, allocations: 119.1 kB / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.01572, allocations: 4 kB / 280.5 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01573, allocations: 0 / 280.5 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.01573, allocations: 3.984 kB / 280.6 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006722/0.01641, allocations: 465.1 kB / 281 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.01641, allocations: 0 / 281 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.01652, allocations: 19.94 kB / 281 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.01653, allocations: 3.984 kB / 281 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.01654, allocations: 4 kB / 281 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.01655, allocations: 4 kB / 281 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01655, allocations: 0 / 281 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004678/0.01702, allocations: 315.4 kB / 281.3 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.01705, allocations: 23.8 kB / 281.4 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.01708, allocations: 3.984 kB / 281.4 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.01722, allocations: 16 kB / 281.4 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-05/0.01731, allocations: 28.02 kB / 281.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.01733, allocations: 8 kB / 281.4 MB, free: 8.293 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001619/0.01749, allocations: 185.4 kB / 281.6 MB, free: 8.113 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01749, allocations: 4 kB / 281.6 MB, free: 8.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000302/0.0178, allocations: 43.89 kB / 281.7 MB, free: 8.066 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.0001961/0.01799, allocations: 111.2 kB / 281.8 MB, free: 7.945 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003981/0.01839, allocations: 157.4 kB / 281.9 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01839, allocations: 0 / 281.9 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.01857, allocations: 75.53 kB / 282 MB, free: 7.715 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.01893, allocations: 36.23 kB / 282 MB, free: 7.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000725/0.01966, allocations: 357.4 kB / 282.4 MB, free: 7.301 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.0198, allocations: 125.4 kB / 282.5 MB, free: 7.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.666e-05/0.0199, allocations: 25.47 kB / 282.5 MB, free: 7.133 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.901e-05/0.01997, allocations: 20.5 kB / 282.5 MB, free: 7.113 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01997, allocations: 4 kB / 282.5 MB, free: 7.109 MB / 266.7 MB Notification: Performance of Templates: time 0.006561/0.02653, allocations: 2.189 MB / 284.7 MB, free: 4.949 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","/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.616057044942863]