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.001594/0.001594, allocations: 120.1 kB / 21.17 MB, free: 0.7305 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.001716/0.001716, allocations: 210.6 kB / 24.47 MB, free: 4.191 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.496/1.496, allocations: 230.4 MB / 258.1 MB, free: 8.152 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.00192/0.00192, allocations: 67.83 kB / 378.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3335, allocations: 53.31 MB / 432 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003364/0.3369, allocations: 1.913 MB / 433.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.3382, allocations: 0.6583 MB / 434.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.3383, allocations: 4 kB / 434.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.3384, allocations: 27.66 kB / 434.6 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.3386, allocations: 39.66 kB / 434.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.3389, allocations: 83.78 kB / 434.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.3392, allocations: 159.4 kB / 434.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.3393, allocations: 54.64 kB / 435 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.3395, allocations: 75.64 kB / 435 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.3397, allocations: 87.55 kB / 435.1 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.955e-05/0.3397, allocations: 12 kB / 435.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.611e-05/0.3398, allocations: 23.98 kB / 435.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-05/0.3399, allocations: 43.84 kB / 435.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.386e-05/0.3399, allocations: 83.48 kB / 435.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.3402, allocations: 196.6 kB / 435.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3403, allocations: 4 kB / 435.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3403, allocations: 0 / 435.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.3403, allocations: 0 / 435.5 MB, free: 3.93 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.0009303/0.3412, allocations: 0.5142 MB / 436 MB, free: 3.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.3412, allocations: 12.03 kB / 436 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.3414, allocations: 32.78 kB / 436 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.3417, allocations: 248.3 kB / 436.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.3417, allocations: 12.66 kB / 436.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.3418, allocations: 12.38 kB / 436.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004527/0.3422, allocations: 208 kB / 436.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3422, allocations: 0 / 436.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.3423, allocations: 11.94 kB / 436.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.3423, allocations: 4 kB / 436.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000303/0.3426, allocations: 143.8 kB / 436.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.3438, allocations: 0.7702 MB / 437.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003457/0.3441, allocations: 169 kB / 437.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.3443, allocations: 65.81 kB / 437.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.135e-05/0.3443, allocations: 7.938 kB / 437.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.3446, allocations: 149 kB / 437.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.193e-06/0.3446, allocations: 0 / 437.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005963/0.3452, allocations: 262.2 kB / 438.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.3453, allocations: 81.11 kB / 438.2 MB, free: 1.023 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.3455, allocations: 203.1 kB / 438.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.3455, allocations: 33.7 kB / 438.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.3456, allocations: 148.2 kB / 438.5 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.3457, allocations: 51.64 kB / 438.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.218e-05/0.3457, allocations: 41.7 kB / 438.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3459, allocations: 330.9 kB / 438.9 MB, free: 204 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.3461, allocations: 71.89 kB / 439 MB, free: 132 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.3464, allocations: 126.8 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.3467, allocations: 206.6 kB / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3467, allocations: 0 / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004416/0.3471, allocations: 249.2 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3472, allocations: 4 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3472, allocations: 4 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3472, allocations: 4.188 kB / 439.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.3473, allocations: 39.92 kB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.3474, allocations: 4.094 kB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.3475, allocations: 39.8 kB / 439.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.3475, allocations: 4 kB / 439.7 MB, free: 15.41 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.0001512/0.3477, allocations: 149.7 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.3477, allocations: 15.91 kB / 439.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004433/0.3482, allocations: 210.9 kB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.3482, allocations: 4 kB / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3482, allocations: 0 / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3482, allocations: 0 / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000295/0.3485, allocations: 277.4 kB / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3485, allocations: 0 / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.3486, allocations: 19.98 kB / 440.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3486, allocations: 0 / 440.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.3486, allocations: 8 kB / 440.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3486, allocations: 0 / 440.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3486, allocations: 4 kB / 440.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004042/0.349, allocations: 229.6 kB / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.3491, allocations: 96.94 kB / 440.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.3491, allocations: 4 kB / 440.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.3492, allocations: 19.98 kB / 440.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.3493, allocations: 15.97 kB / 440.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.3493, allocations: 4 kB / 440.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.3495, allocations: 148.6 kB / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3495, allocations: 0 / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.3497, allocations: 39.95 kB / 440.9 MB, free: 14.08 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.0001713/0.3499, allocations: 111.1 kB / 441 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004017/0.3503, allocations: 171.8 kB / 441.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3503, allocations: 0 / 441.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.3505, allocations: 80.52 kB / 441.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.3508, allocations: 48.23 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008371/0.3517, allocations: 415 kB / 441.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.3521, allocations: 0.7396 MB / 442.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.591e-05/0.3521, allocations: 19.44 kB / 442.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3521, allocations: 0 / 442.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Templates: time 0.004676/0.3568, allocations: 2.454 MB / 444.9 MB, free: 10 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.422246245201677]