Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 88.62 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.745e-06/2.745e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.847e-05/3.122e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003601/0.003632, allocations: 1.794 MB / 269.1 MB, free: 4.918 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.00503, allocations: 0.6113 MB / 269.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.005144, allocations: 7.938 kB / 269.7 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.005298, allocations: 23.67 kB / 269.7 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.005468, allocations: 35.66 kB / 269.8 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003748/0.005843, allocations: 95.64 kB / 269.9 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002981/0.006141, allocations: 175.4 kB / 270 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.006326, allocations: 43 kB / 270.1 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.006521, allocations: 103.8 kB / 270.2 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.006689, allocations: 67.78 kB / 270.3 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.157e-05/0.00673, allocations: 16 kB / 270.3 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.723e-05/0.006818, allocations: 27.98 kB / 270.3 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.006898, allocations: 47.77 kB / 270.3 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.077e-05/0.006989, allocations: 55.83 kB / 270.4 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.007314, allocations: 207.2 kB / 270.6 MB, free: 3.406 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.007323, allocations: 4 kB / 270.6 MB, free: 3.402 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.007324, allocations: 0 / 270.6 MB, free: 3.402 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.007328, allocations: 0 / 270.6 MB, free: 3.402 MB / 250.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.0009335/0.008261, allocations: 441.2 kB / 271 MB, free: 2.941 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.008301, allocations: 8.922 kB / 271 MB, free: 2.934 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.008402, allocations: 40.78 kB / 271.1 MB, free: 2.895 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.008727, allocations: 185.3 kB / 271.3 MB, free: 2.688 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.008759, allocations: 16.38 kB / 271.3 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.146e-05/0.00879, allocations: 16.38 kB / 271.3 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/0.009271, allocations: 213.8 kB / 271.5 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.009286, allocations: 7.938 kB / 271.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.009309, allocations: 4 kB / 271.5 MB, free: 2.414 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/0.009337, allocations: 11.98 kB / 271.5 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.009709, allocations: 135.8 kB / 271.7 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.01095, allocations: 0.6761 MB / 272.3 MB, free: 1.551 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006482/0.0116, allocations: 194.6 kB / 272.5 MB, free: 1.352 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.01176, allocations: 56.77 kB / 272.6 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.01178, allocations: 4 kB / 272.6 MB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003023/0.01208, allocations: 160.1 kB / 272.7 MB, free: 1.117 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.052e-06/0.01208, allocations: 0 / 272.7 MB, free: 1.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006159/0.0127, allocations: 253.4 kB / 273 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.01277, allocations: 77.11 kB / 273.1 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.01301, allocations: 215.7 kB / 273.3 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.01305, allocations: 29.7 kB / 273.3 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.01317, allocations: 144.3 kB / 273.4 MB, free: 380 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.01321, allocations: 31.81 kB / 273.5 MB, free: 348 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.953e-05/0.01331, allocations: 57.69 kB / 273.5 MB, free: 284 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000235/0.01355, allocations: 334.8 kB / 273.9 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.01372, allocations: 67.95 kB / 273.9 MB, free: 15.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005071/0.01423, allocations: 140.5 kB / 274.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.01463, allocations: 208.3 kB / 274.3 MB, free: 15.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.01463, allocations: 4 kB / 274.3 MB, free: 15.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005438/0.01517, allocations: 261.4 kB / 274.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.01519, allocations: 8 kB / 274.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.01519, allocations: 4.062 kB / 274.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.01521, allocations: 4 kB / 274.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.01539, allocations: 44.16 kB / 274.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.0154, allocations: 4 kB / 274.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.01557, allocations: 35.8 kB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.01559, allocations: 8 kB / 274.6 MB, free: 15.1 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.0001726/0.01577, allocations: 151.7 kB / 274.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.01581, allocations: 23.86 kB / 274.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.01609, allocations: 135.4 kB / 274.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.01609, allocations: 8 kB / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.01609, allocations: 0 / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.0161, allocations: 0 / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006605/0.01676, allocations: 402 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01676, allocations: 0 / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.01688, allocations: 15.98 kB / 275.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.01689, allocations: 4 kB / 275.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.01691, allocations: 3.984 kB / 275.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.01691, allocations: 0 / 275.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.01691, allocations: 7.938 kB / 275.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004929/0.01741, allocations: 296.1 kB / 275.7 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.415e-05/0.01744, allocations: 19.84 kB / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.01747, allocations: 4 kB / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.01765, allocations: 19.97 kB / 275.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.01773, allocations: 23.91 kB / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.01776, allocations: 7.984 kB / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001392/0.01789, allocations: 141.5 kB / 275.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01789, allocations: 0 / 275.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003101/0.0182, allocations: 43.95 kB / 275.9 MB, free: 13.75 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.0001507/0.01836, allocations: 107.2 kB / 276 MB, free: 13.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004397/0.0188, allocations: 167.7 kB / 276.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-06/0.0188, allocations: 0 / 276.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.01899, allocations: 76.38 kB / 276.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.01932, allocations: 40.22 kB / 276.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007064/0.02003, allocations: 361.7 kB / 276.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.02017, allocations: 120.9 kB / 276.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.02027, allocations: 37.45 kB / 276.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.904e-05/0.02034, allocations: 24.5 kB / 276.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.02034, allocations: 0 / 276.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Templates: time 0.0058/0.02614, allocations: 2.166 MB / 279 MB, free: 10.64 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.423036315012723]