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.001847/0.001847, allocations: 84.55 kB / 20.68 MB, free: 1.023 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.002341/0.002341, allocations: 163.9 kB / 23.95 MB, free: 4.156 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.484/1.484, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.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 1.272e-06/1.272e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.323e-05/2.451e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003066/0.00309, allocations: 1.826 MB / 326.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.004511, allocations: 0.6686 MB / 327.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.004635, allocations: 11.72 kB / 327.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.004809, allocations: 30.34 kB / 327.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.004967, allocations: 28.33 kB / 327.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.005383, allocations: 99.89 kB / 327.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.005692, allocations: 186.9 kB / 327.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.005898, allocations: 45.92 kB / 327.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000313/0.006211, allocations: 109.4 kB / 328 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.006411, allocations: 67.88 kB / 328.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.006455, allocations: 18.22 kB / 328.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.644e-05/0.006552, allocations: 23.47 kB / 328.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.727e-05/0.006649, allocations: 46.28 kB / 328.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.006752, allocations: 57.7 kB / 328.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.007174, allocations: 214.8 kB / 328.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.007178, allocations: 0 / 328.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.007179, allocations: 1.281 kB / 328.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.007186, allocations: 0 / 328.5 MB, free: 14.39 MB / 302.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.00107/0.008256, allocations: 441.5 kB / 328.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.008297, allocations: 10.03 kB / 328.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.008489, allocations: 33.55 kB / 328.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003625/0.008852, allocations: 184.9 kB / 329.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.008883, allocations: 15.23 kB / 329.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.216e-05/0.008915, allocations: 20.84 kB / 329.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.009391, allocations: 205.6 kB / 329.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.009405, allocations: 1.25 kB / 329.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.009433, allocations: 14.05 kB / 329.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-05/0.009464, allocations: 11.23 kB / 329.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004102/0.009875, allocations: 141.5 kB / 329.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.01106, allocations: 0.6836 MB / 330.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006976/0.01176, allocations: 185.2 kB / 330.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.01191, allocations: 56.56 kB / 330.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.01195, allocations: 7.406 kB / 330.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.01226, allocations: 155.3 kB / 330.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.01226, allocations: 0 / 330.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006848/0.01295, allocations: 243.1 kB / 330.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/0.01304, allocations: 80.7 kB / 330.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.01331, allocations: 227.6 kB / 331.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.01334, allocations: 28.23 kB / 331.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.01349, allocations: 147.1 kB / 331.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.123e-05/0.01354, allocations: 33.27 kB / 331.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.01367, allocations: 60.59 kB / 331.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.01388, allocations: 332.1 kB / 331.7 MB, free: 12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.01406, allocations: 65.67 kB / 331.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.01431, allocations: 137.5 kB / 331.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004566/0.01477, allocations: 210.8 kB / 332.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.01477, allocations: 7.938 kB / 332.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005689/0.01534, allocations: 249.9 kB / 332.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.01536, allocations: 10.19 kB / 332.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.01537, allocations: 2.281 kB / 332.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.01539, allocations: 3.438 kB / 332.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.01558, allocations: 39.59 kB / 332.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.01559, allocations: 7.719 kB / 332.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.01577, allocations: 29.06 kB / 332.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.01579, allocations: 7.719 kB / 332.5 MB, free: 11.53 MB / 302.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.01596, allocations: 156.5 kB / 332.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.599e-05/0.016, allocations: 16.66 kB / 332.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002803/0.01628, allocations: 130.7 kB / 332.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.01628, allocations: 2.281 kB / 332.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.01629, allocations: 5.594 kB / 332.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.01629, allocations: 3.984 kB / 332.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006511/0.01694, allocations: 404.8 kB / 333.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.01695, allocations: 1.438 kB / 333.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.01706, allocations: 16.64 kB / 333.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.01707, allocations: 1.25 kB / 333.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.01708, allocations: 5.938 kB / 333.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.01709, allocations: 4.859 kB / 333.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.01709, allocations: 1.188 kB / 333.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004848/0.01758, allocations: 294.2 kB / 333.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.01761, allocations: 20.8 kB / 333.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.01764, allocations: 2.156 kB / 333.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.01782, allocations: 21.22 kB / 333.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.0179, allocations: 19.09 kB / 333.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.01792, allocations: 4.812 kB / 333.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001465/0.01806, allocations: 142.9 kB / 333.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01806, allocations: 0 / 333.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.01839, allocations: 47.67 kB / 333.8 MB, free: 10.56 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.0001749/0.01856, allocations: 118.8 kB / 333.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004315/0.019, allocations: 156.8 kB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.019, allocations: 5.156 kB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.01919, allocations: 74.42 kB / 334.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.01954, allocations: 44.09 kB / 334.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007082/0.02025, allocations: 360.3 kB / 334.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.02038, allocations: 124.7 kB / 334.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.537e-05/0.02048, allocations: 33.41 kB / 334.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.42e-05/0.02055, allocations: 24.02 kB / 334.7 MB, free: 9.93 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.02055, allocations: 0 / 334.7 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Templates: time 0.0063/0.02685, allocations: 2.171 MB / 336.8 MB, free: 8.824 MB / 302.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 -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.382095001637936]