Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.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.001291/0.001291, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 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.001461/0.001461, allocations: 211.8 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.421/1.421, allocations: 230.5 MB / 258.2 MB, free: 8.07 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-beta.om/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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002273/0.002273, allocations: 68.77 kB / 379 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.299, allocations: 53.37 MB / 432.4 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003311/0.3023, allocations: 1.91 MB / 434.3 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.3037, allocations: 0.6583 MB / 435 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.3038, allocations: 7.938 kB / 435 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.304, allocations: 27.72 kB / 435 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.3042, allocations: 35.66 kB / 435 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003219/0.3045, allocations: 91.72 kB / 435.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.3048, allocations: 159.4 kB / 435.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.3049, allocations: 56.48 kB / 435.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.3051, allocations: 75.66 kB / 435.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.3053, allocations: 87.59 kB / 435.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.3053, allocations: 12 kB / 435.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.34e-05/0.3054, allocations: 23.98 kB / 435.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.262e-05/0.3055, allocations: 47.78 kB / 435.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.055e-05/0.3056, allocations: 79.55 kB / 435.7 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.3059, allocations: 196.7 kB / 435.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3059, allocations: 4 kB / 435.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3059, allocations: 0 / 435.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.3059, allocations: 0 / 435.9 MB, free: 3.508 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008886/0.3068, allocations: 453.4 kB / 436.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3068, allocations: 12.03 kB / 436.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.307, allocations: 36.78 kB / 436.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.3073, allocations: 174.8 kB / 436.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.3073, allocations: 8.656 kB / 436.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.3074, allocations: 20.38 kB / 436.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004012/0.3078, allocations: 200 kB / 436.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3078, allocations: 7.938 kB / 436.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.3078, allocations: 4 kB / 436.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/0.3078, allocations: 12 kB / 436.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.3081, allocations: 139.8 kB / 436.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.3093, allocations: 0.7381 MB / 437.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.3096, allocations: 165 kB / 437.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.3098, allocations: 77.8 kB / 437.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.3098, allocations: 0 / 437.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.3101, allocations: 145.1 kB / 438 MB, free: 1.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.3101, allocations: 0 / 438 MB, free: 1.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005746/0.3107, allocations: 253.6 kB / 438.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.3108, allocations: 89.05 kB / 438.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.311, allocations: 207.1 kB / 438.5 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.311, allocations: 37.64 kB / 438.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.3111, allocations: 148.2 kB / 438.7 MB, free: 424 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.646e-05/0.3112, allocations: 43.64 kB / 438.8 MB, free: 380 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.33e-05/0.3113, allocations: 45.7 kB / 438.8 MB, free: 328 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.3115, allocations: 330.8 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.3116, allocations: 67.95 kB / 439.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.3118, allocations: 122.8 kB / 439.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.3122, allocations: 207.2 kB / 439.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3122, allocations: 0 / 439.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000441/0.3126, allocations: 249.2 kB / 439.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.3126, allocations: 8.109 kB / 439.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3127, allocations: 3.938 kB / 439.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3127, allocations: 7.984 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.3128, allocations: 35.92 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3128, allocations: 4 kB / 439.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.313, allocations: 32.05 kB / 439.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.313, allocations: 8 kB / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001557/0.3132, allocations: 141.7 kB / 440 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.3132, allocations: 23.88 kB / 440 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004732/0.3137, allocations: 202.9 kB / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.3137, allocations: 8 kB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3137, allocations: 4 kB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3137, allocations: 0 / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003134/0.314, allocations: 248.5 kB / 440.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.314, allocations: 0 / 440.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.3141, allocations: 27.91 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3141, allocations: 96 / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.3142, allocations: 11.94 kB / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3142, allocations: 0 / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3142, allocations: 0 / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003968/0.3146, allocations: 232.8 kB / 440.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.3146, allocations: 15.84 kB / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.3146, allocations: 8 kB / 440.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.3147, allocations: 15.97 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.517e-05/0.3148, allocations: 19.91 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.3148, allocations: 8 kB / 440.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001737/0.315, allocations: 148.6 kB / 441 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.315, allocations: 0 / 441 MB, free: 14.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.3153, allocations: 43.89 kB / 441 MB, free: 13.99 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001469/0.3154, allocations: 103.2 kB / 441.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003953/0.3158, allocations: 168.1 kB / 441.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3158, allocations: 4.062 kB / 441.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001943/0.316, allocations: 75.89 kB / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.3163, allocations: 40.61 kB / 441.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000695/0.317, allocations: 365.4 kB / 441.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.3174, allocations: 0.7397 MB / 442.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.3175, allocations: 37.55 kB / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.008e-05/0.3176, allocations: 15.44 kB / 442.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3176, allocations: 4 kB / 442.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of Templates: time 0.00578/0.3234, allocations: 2.233 MB / 444.8 MB, free: 10.18 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.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.538266719318926]