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.0008832/0.0008832, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.00337/0.00337, allocations: 163.3 kB / 24.7 MB, free: 9.43 MB / 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 0.9172/0.9172, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.412e-06/1.412e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.968e-05/2.109e-05, allocations: 4.531 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001913/0.001935, allocations: 1.823 MB / 327.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007999/0.002734, allocations: 0.6659 MB / 328.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.337e-05/0.002818, allocations: 11.94 kB / 328.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.002926, allocations: 27.67 kB / 328.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.003038, allocations: 35.66 kB / 328.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002586/0.003297, allocations: 99.62 kB / 328.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000169/0.003466, allocations: 179.3 kB / 328.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.003601, allocations: 54.98 kB / 328.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.003755, allocations: 107.8 kB / 328.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.003868, allocations: 67.78 kB / 328.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.00389, allocations: 16 kB / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.053e-05/0.003951, allocations: 23.98 kB / 328.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.336e-05/0.004004, allocations: 47.83 kB / 329 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.204e-05/0.004056, allocations: 59.77 kB / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002139/0.00427, allocations: 207.2 kB / 329.2 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.004272, allocations: 0 / 329.2 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.004273, allocations: 0 / 329.2 MB, free: 12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.004278, allocations: 0 / 329.2 MB, free: 12 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.0005813/0.004859, allocations: 456.9 kB / 329.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.004893, allocations: 8.031 kB / 329.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.004995, allocations: 32.78 kB / 329.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.00519, allocations: 186.8 kB / 329.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.005206, allocations: 16.31 kB / 329.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.005225, allocations: 20.38 kB / 329.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/0.00547, allocations: 198.1 kB / 330.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.00548, allocations: 4.188 kB / 330.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.005496, allocations: 8.375 kB / 330.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.005513, allocations: 11.94 kB / 330.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001939/0.005707, allocations: 139.7 kB / 330.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000607/0.006314, allocations: 0.6761 MB / 331 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.006668, allocations: 190.6 kB / 331.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.627e-05/0.006745, allocations: 60.75 kB / 331.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.006773, allocations: 7.938 kB / 331.2 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.006935, allocations: 151.7 kB / 331.4 MB, free: 9.727 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.032e-06/0.006936, allocations: 0 / 331.4 MB, free: 9.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003471/0.007283, allocations: 245.4 kB / 331.6 MB, free: 9.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.007321, allocations: 81.09 kB / 331.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.007584, allocations: 223.7 kB / 331.9 MB, free: 9.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.0076, allocations: 33.7 kB / 331.9 MB, free: 9.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.504e-05/0.007665, allocations: 144.3 kB / 332.1 MB, free: 8.973 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.007687, allocations: 27.75 kB / 332.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.00774, allocations: 61.69 kB / 332.2 MB, free: 8.879 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.57e-05/0.007816, allocations: 330.8 kB / 332.5 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.869e-05/0.007905, allocations: 67.95 kB / 332.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.008009, allocations: 132.5 kB / 332.7 MB, free: 8.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.008199, allocations: 216.3 kB / 332.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.008202, allocations: 8.188 kB / 332.9 MB, free: 8.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002457/0.008447, allocations: 253.2 kB / 333.1 MB, free: 7.816 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.00846, allocations: 8 kB / 333.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.008466, allocations: 0 / 333.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.008478, allocations: 4 kB / 333.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.472e-05/0.008572, allocations: 44.16 kB / 333.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.008578, allocations: 4 kB / 333.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.008653, allocations: 27.88 kB / 333.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.008663, allocations: 8 kB / 333.2 MB, free: 7.723 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 8.908e-05/0.008752, allocations: 155.6 kB / 333.4 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.716e-05/0.00877, allocations: 19.89 kB / 333.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.008917, allocations: 131.4 kB / 333.5 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.008919, allocations: 4 kB / 333.5 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.008923, allocations: 4 kB / 333.5 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.008927, allocations: 3.984 kB / 333.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003221/0.009249, allocations: 406 kB / 333.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.009251, allocations: 0 / 333.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.019e-05/0.009301, allocations: 23.92 kB / 334 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.009303, allocations: 0 / 334 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.009314, allocations: 4 kB / 334 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.009317, allocations: 7.984 kB / 334 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.009318, allocations: 0 / 334 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.009539, allocations: 284.1 kB / 334.3 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.628e-05/0.009556, allocations: 23.86 kB / 334.3 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.009571, allocations: 0 / 334.3 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.341e-05/0.009645, allocations: 23.97 kB / 334.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.009699, allocations: 19.91 kB / 334.3 MB, free: 6.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.009711, allocations: 4 kB / 334.3 MB, free: 6.566 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.886e-05/0.00978, allocations: 149.5 kB / 334.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00978, allocations: 0 / 334.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001898/0.00997, allocations: 43.89 kB / 334.5 MB, free: 6.379 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.0001078/0.01008, allocations: 115.2 kB / 334.6 MB, free: 6.258 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002245/0.0103, allocations: 163.8 kB / 334.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.0103, allocations: 0 / 334.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.524e-05/0.0104, allocations: 75.89 kB / 334.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.01063, allocations: 36.12 kB / 334.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004499/0.01108, allocations: 393.5 kB / 335.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.723e-05/0.01115, allocations: 124.9 kB / 335.4 MB, free: 5.422 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.0112, allocations: 24.5 kB / 335.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.0112, allocations: 4.281 kB / 335.4 MB, free: 5.395 MB / 298.7 MB Notification: Performance of Templates: time 0.002698/0.0139, allocations: 2.474 MB / 337.9 MB, free: 2.93 MB / 298.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=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.440519005060196]