Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008672/0.0008672, allocations: 88.28 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004772/0.004772, allocations: 152.3 kB / 24.69 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8463/0.8463, allocations: 177 MB / 204.9 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.24e-05/2.41e-05, allocations: 6.219 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002832/0.002856, allocations: 1.817 MB / 327.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.003949, allocations: 0.6582 MB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.00406, allocations: 7.938 kB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.004199, allocations: 35.59 kB / 328.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.004342, allocations: 31.67 kB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.004668, allocations: 95.64 kB / 328.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.004905, allocations: 195.3 kB / 328.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.005077, allocations: 47 kB / 328.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.005279, allocations: 107.8 kB / 328.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.005422, allocations: 67.78 kB / 328.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.005453, allocations: 12 kB / 328.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.854e-05/0.005532, allocations: 23.94 kB / 328.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.74e-05/0.005599, allocations: 51.81 kB / 328.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.582e-05/0.005665, allocations: 55.78 kB / 329 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.005946, allocations: 211.2 kB / 329.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.005948, allocations: 0 / 329.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.005949, allocations: 0 / 329.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.005954, allocations: 7.938 kB / 329.2 MB, free: 11.95 MB / 298.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.0007471/0.006701, allocations: 445 kB / 329.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.00674, allocations: 11.98 kB / 329.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.006879, allocations: 32.78 kB / 329.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.00715, allocations: 186.8 kB / 329.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.007173, allocations: 16.38 kB / 329.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.882e-05/0.007202, allocations: 24.36 kB / 329.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003551/0.007557, allocations: 201.9 kB / 330.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.007568, allocations: 192 / 330.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.007591, allocations: 8.375 kB / 330.1 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.007613, allocations: 15.94 kB / 330.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.007911, allocations: 139.7 kB / 330.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008728/0.008784, allocations: 0.6839 MB / 330.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.009303, allocations: 186.6 kB / 331.1 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.009424, allocations: 56.77 kB / 331.1 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.009461, allocations: 7.984 kB / 331.2 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.009695, allocations: 152 kB / 331.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.009696, allocations: 0 / 331.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005065/0.0102, allocations: 245.6 kB / 331.5 MB, free: 9.426 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.01025, allocations: 77.11 kB / 331.6 MB, free: 9.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.01043, allocations: 223.8 kB / 331.8 MB, free: 9.105 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.01045, allocations: 37.64 kB / 331.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.661e-05/0.01054, allocations: 140.3 kB / 332 MB, free: 8.922 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/0.01057, allocations: 39.72 kB / 332.1 MB, free: 8.883 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.237e-05/0.01065, allocations: 61.69 kB / 332.1 MB, free: 8.816 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.01076, allocations: 326.8 kB / 332.4 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.0109, allocations: 67.95 kB / 332.5 MB, free: 8.422 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.01107, allocations: 140.5 kB / 332.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.01136, allocations: 208.4 kB / 332.8 MB, free: 8.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.01137, allocations: 3.938 kB / 332.8 MB, free: 8.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003891/0.01176, allocations: 249.4 kB / 333.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.01177, allocations: 12.06 kB / 333.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.01178, allocations: 0 / 333.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.01179, allocations: 4 kB / 333.1 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.01193, allocations: 35.92 kB / 333.1 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.01194, allocations: 4 kB / 333.1 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.01207, allocations: 31.86 kB / 333.2 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.01209, allocations: 8 kB / 333.2 MB, free: 7.672 MB / 298.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.00013/0.01222, allocations: 159.6 kB / 333.3 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.01225, allocations: 19.91 kB / 333.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002222/0.01247, allocations: 135.3 kB / 333.5 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.01247, allocations: 0 / 333.5 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.01248, allocations: 4 kB / 333.5 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.01248, allocations: 4 kB / 333.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004716/0.01295, allocations: 398 kB / 333.9 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.01296, allocations: 3.984 kB / 333.9 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.038e-05/0.01304, allocations: 23.92 kB / 333.9 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.01304, allocations: 0 / 333.9 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.01306, allocations: 12 kB / 333.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.01306, allocations: 0 / 333.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01306, allocations: 192 / 333.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.01337, allocations: 284 kB / 334.2 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.253e-05/0.01339, allocations: 27.84 kB / 334.2 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.01341, allocations: 0 / 334.2 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.01352, allocations: 23.92 kB / 334.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.01359, allocations: 19.95 kB / 334.3 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.01361, allocations: 12 kB / 334.3 MB, free: 6.504 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001017/0.01371, allocations: 145.5 kB / 334.4 MB, free: 6.363 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01371, allocations: 0 / 334.4 MB, free: 6.363 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003064/0.01401, allocations: 43.89 kB / 334.5 MB, free: 6.32 MB / 298.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.0001368/0.01415, allocations: 107.2 kB / 334.6 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003313/0.01448, allocations: 164.2 kB / 334.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01448, allocations: 4 kB / 334.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.01462, allocations: 75.89 kB / 334.8 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.01497, allocations: 43.38 kB / 334.9 MB, free: 5.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006273/0.01559, allocations: 389.5 kB / 335.2 MB, free: 5.512 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.01571, allocations: 124.9 kB / 335.4 MB, free: 5.367 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.655e-05/0.01577, allocations: 24.5 kB / 335.4 MB, free: 5.344 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01577, allocations: 0 / 335.4 MB, free: 5.344 MB / 298.7 MB Notification: Performance of Templates: time 0.003906/0.01968, allocations: 2.479 MB / 337.9 MB, free: 2.867 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.442506735213101]