Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.0009344/0.0009344, allocations: 71.75 kB / 21.69 MB, free: 2.84 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.0009563/0.0009563, allocations: 169 kB / 25 MB, free: 8.824 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.9713/0.9713, allocations: 177.1 MB / 205.3 MB, free: 5.617 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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.043e-06/2.043e-06, allocations: 0 / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.116e-05/3.32e-05, allocations: 2.312 kB / 273.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004495/0.004528, allocations: 2.864 MB / 275.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.006524, allocations: 1.172 MB / 277.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.006704, allocations: 12 kB / 277.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.008043, allocations: 0.6455 MB / 277.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004049/0.008448, allocations: 146.9 kB / 277.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.009652, allocations: 0.6329 MB / 278.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.01011, allocations: 318.4 kB / 278.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004592/0.01057, allocations: 227.2 kB / 279.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.01085, allocations: 195.5 kB / 279.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.01104, allocations: 131.6 kB / 279.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.01107, allocations: 24 kB / 279.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002924/0.01136, allocations: 179.7 kB / 279.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.586e-05/0.0114, allocations: 59.75 kB / 279.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.599e-05/0.01147, allocations: 99.7 kB / 279.7 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004189/0.01189, allocations: 382.7 kB / 280.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.0119, allocations: 4 kB / 280.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.0119, allocations: 0 / 280.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.01191, allocations: 4 kB / 280.1 MB, free: 10.73 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001142/0.01305, allocations: 0.7611 MB / 280.9 MB, free: 9.938 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.01309, allocations: 12.03 kB / 280.9 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006/0.01369, allocations: 172.5 kB / 281.1 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000524/0.01421, allocations: 204.1 kB / 281.3 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.01423, allocations: 29.03 kB / 281.3 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.194e-05/0.01428, allocations: 32.31 kB / 281.3 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003441/0.01462, allocations: 271.3 kB / 281.6 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.01464, allocations: 16.14 kB / 281.6 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.01466, allocations: 11.94 kB / 281.6 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.01467, allocations: 8 kB / 281.6 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002132/0.01489, allocations: 139.8 kB / 281.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.01611, allocations: 1.124 MB / 282.9 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.01645, allocations: 211.1 kB / 283.1 MB, free: 7.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.452e-05/0.01654, allocations: 79.61 kB / 283.2 MB, free: 7.527 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-05/0.01663, allocations: 19.98 kB / 283.2 MB, free: 7.508 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.01666, allocations: 37.39 kB / 283.2 MB, free: 7.461 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.375e-06/0.01666, allocations: 0 / 283.2 MB, free: 7.461 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000714/0.01737, allocations: 359.6 kB / 283.6 MB, free: 7.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.0174, allocations: 59.34 kB / 283.6 MB, free: 7.031 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.01752, allocations: 217.7 kB / 283.8 MB, free: 6.805 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.01754, allocations: 25.7 kB / 283.9 MB, free: 6.773 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.282e-05/0.01762, allocations: 231 kB / 284.1 MB, free: 6.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.01767, allocations: 83.28 kB / 284.2 MB, free: 6.461 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.01773, allocations: 59.64 kB / 284.2 MB, free: 6.391 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.01785, allocations: 0.5001 MB / 284.7 MB, free: 5.879 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.434e-05/0.01791, allocations: 44.53 kB / 284.8 MB, free: 5.836 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.01802, allocations: 131.6 kB / 284.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.0182, allocations: 182.6 kB / 285.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.0182, allocations: 0 / 285.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003498/0.01855, allocations: 279.2 kB / 285.4 MB, free: 5.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.01857, allocations: 8 kB / 285.4 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.01858, allocations: 7.875 kB / 285.4 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002729/0.01885, allocations: 79.84 kB / 285.4 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.516e-05/0.01894, allocations: 43.92 kB / 285.5 MB, free: 5.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.02028, allocations: 2.337 MB / 287.8 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.77e-05/0.02035, allocations: 35.7 kB / 287.9 MB, free: 2.547 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.02037, allocations: 8 kB / 287.9 MB, free: 2.539 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.02047, allocations: 172.5 kB / 288 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.126e-05/0.0205, allocations: 19.91 kB / 288.1 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003339/0.02083, allocations: 226.4 kB / 288.3 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.02084, allocations: 4 kB / 288.3 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002474/0.02108, allocations: 3.984 kB / 288.3 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.02109, allocations: 3.938 kB / 288.3 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005736/0.02166, allocations: 0.5984 MB / 288.9 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.02167, allocations: 4 kB / 288.9 MB, free: 1.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.868e-05/0.02173, allocations: 20 kB / 288.9 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001719/0.02191, allocations: 75.5 kB / 289 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.02192, allocations: 8 kB / 289 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.02312, allocations: 2.318 MB / 291.3 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.02312, allocations: 3.938 kB / 291.3 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003833/0.0235, allocations: 418.5 kB / 291.7 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.891e-05/0.02355, allocations: 35.81 kB / 291.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.02357, allocations: 4 kB / 291.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.867e-05/0.02363, allocations: 7.938 kB / 291.8 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.02367, allocations: 19.95 kB / 291.8 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.02368, allocations: 8 kB / 291.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.333e-05/0.02375, allocations: 154 kB / 291.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02375, allocations: 0 / 291.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003691/0.02412, allocations: 99.78 kB / 292 MB, free: 14.14 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002055/0.02433, allocations: 139.1 kB / 292.2 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004422/0.02477, allocations: 363.4 kB / 292.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.02477, allocations: 4.125 kB / 292.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.02497, allocations: 293.1 kB / 292.8 MB, free: 13.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.0252, allocations: 22.98 kB / 292.8 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009679/0.02617, allocations: 0.5029 MB / 293.4 MB, free: 12.76 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.968e-05/0.02623, allocations: 88.31 kB / 293.4 MB, free: 12.65 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.068e-05/0.02629, allocations: 25.95 kB / 293.5 MB, free: 12.63 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.989e-05/0.02632, allocations: 20.48 kB / 293.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02632, allocations: 0 / 293.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of Templates: time 0.005078/0.0314, allocations: 2.727 MB / 296.2 MB, free: 9.914 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8699456688482314]