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.001321/0.001321, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001494/0.001494, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.458/1.458, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.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 0.002227/0.002227, allocations: 51.94 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3174, allocations: 53.36 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003393/0.3208, allocations: 1.819 MB / 434.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3223, allocations: 0.6622 MB / 434.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.3224, allocations: 7.938 kB / 434.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.3226, allocations: 27.66 kB / 434.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.3227, allocations: 23.75 kB / 434.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.3231, allocations: 103.7 kB / 435 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.3234, allocations: 171.5 kB / 435.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.3236, allocations: 54.59 kB / 435.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.3238, allocations: 95.62 kB / 435.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.324, allocations: 79.59 kB / 435.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.324, allocations: 16 kB / 435.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.695e-05/0.3241, allocations: 27.94 kB / 435.4 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.001e-05/0.3242, allocations: 47.78 kB / 435.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.718e-05/0.3243, allocations: 67.59 kB / 435.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003315/0.3246, allocations: 206.1 kB / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3246, allocations: 0 / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3246, allocations: 0 / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3246, allocations: 0 / 435.7 MB, free: 3.34 MB / 334.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.001031/0.3256, allocations: 459.2 kB / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.3257, allocations: 12.03 kB / 436.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.3259, allocations: 32.78 kB / 436.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.3262, allocations: 187.8 kB / 436.4 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.3262, allocations: 8.375 kB / 436.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.3262, allocations: 16.38 kB / 436.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/0.3267, allocations: 222.6 kB / 436.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.3267, allocations: 7.875 kB / 436.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.3267, allocations: 8 kB / 436.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.3268, allocations: 4 kB / 436.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.3271, allocations: 139.9 kB / 436.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.3282, allocations: 0.6762 MB / 437.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006425/0.3288, allocations: 178.6 kB / 437.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.329, allocations: 60.81 kB / 437.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.329, allocations: 7.922 kB / 437.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002971/0.3293, allocations: 156.9 kB / 437.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.3293, allocations: 3.938 kB / 437.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006217/0.3299, allocations: 241.4 kB / 438.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.398e-05/0.33, allocations: 85.09 kB / 438.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/0.3302, allocations: 215.7 kB / 438.4 MB, free: 496 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.3303, allocations: 25.7 kB / 438.4 MB, free: 464 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3304, allocations: 152.2 kB / 438.6 MB, free: 308 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.3304, allocations: 35.73 kB / 438.6 MB, free: 272 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.25e-05/0.3305, allocations: 61.69 kB / 438.7 MB, free: 204 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3307, allocations: 338.8 kB / 439 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.3309, allocations: 63.95 kB / 439 MB, free: 15.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.3311, allocations: 140.4 kB / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.3315, allocations: 216.3 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3315, allocations: 0 / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004913/0.332, allocations: 245.3 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.332, allocations: 7.938 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.332, allocations: 8.25 kB / 439.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.332, allocations: 4 kB / 439.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.3322, allocations: 39.91 kB / 439.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.3322, allocations: 7.938 kB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.3324, allocations: 27.88 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.3324, allocations: 11.98 kB / 439.7 MB, free: 15.04 MB / 350.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.000161/0.3326, allocations: 144.2 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.3326, allocations: 23.89 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.3329, allocations: 130.9 kB / 440 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3329, allocations: 7.984 kB / 440 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3329, allocations: 0 / 440 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3329, allocations: 0 / 440 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006402/0.3335, allocations: 409.8 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3335, allocations: 0 / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.3336, allocations: 16.3 kB / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.3336, allocations: 4 kB / 440.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.3337, allocations: 7.984 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.3337, allocations: 8 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3337, allocations: 4 kB / 440.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/0.3341, allocations: 288.1 kB / 440.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.92e-05/0.3342, allocations: 15.84 kB / 440.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.3342, allocations: 4 kB / 440.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.3344, allocations: 19.97 kB / 440.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.657e-05/0.3344, allocations: 23.91 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.3345, allocations: 8 kB / 440.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001401/0.3346, allocations: 145.5 kB / 441 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3346, allocations: 4 kB / 441 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.3349, allocations: 43.94 kB / 441 MB, free: 13.68 MB / 350.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.0001734/0.3351, allocations: 103.2 kB / 441.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004367/0.3355, allocations: 163.7 kB / 441.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3355, allocations: 4.438 kB / 441.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.3357, allocations: 75.89 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.3361, allocations: 31.44 kB / 441.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008155/0.3369, allocations: 399.5 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.337, allocations: 124.9 kB / 441.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.112e-05/0.3371, allocations: 27.42 kB / 441.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3371, allocations: 0 / 441.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Templates: time 0.004994/0.3421, allocations: 2.472 MB / 444.4 MB, free: 10.24 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/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: 7.549147251062095]