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.001359/0.001359, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001203/0.001203, allocations: 164.4 kB / 24.82 MB, free: 9.266 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.9887/0.9887, allocations: 177.1 MB / 205.3 MB, free: 5.473 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 1.823e-06/1.823e-06, allocations: 0 / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.553e-05, allocations: 2.312 kB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.00325/0.003276, allocations: 2.816 MB / 276.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.005422, allocations: 1.176 MB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.005614, allocations: 4 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.006697, allocations: 0.6338 MB / 278 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003729/0.00707, allocations: 146.9 kB / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008789/0.007949, allocations: 0.6248 MB / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.008324, allocations: 310.4 kB / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000351/0.008675, allocations: 227.2 kB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.008926, allocations: 203.5 kB / 279.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.009081, allocations: 127.7 kB / 279.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.009111, allocations: 24 kB / 279.7 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.009447, allocations: 171.7 kB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.214e-05/0.00949, allocations: 71.69 kB / 279.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.897e-05/0.009558, allocations: 103.8 kB / 280 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004311/0.00999, allocations: 382.7 kB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.009993, allocations: 0 / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.009994, allocations: 0 / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.009999, allocations: 0 / 280.4 MB, free: 10.25 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.001027/0.01103, allocations: 0.761 MB / 281.1 MB, free: 9.457 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.01106, allocations: 12.03 kB / 281.2 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004947/0.01156, allocations: 172.5 kB / 281.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.01177, allocations: 204.2 kB / 281.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.01179, allocations: 25.03 kB / 281.5 MB, free: 9.027 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.01182, allocations: 32.38 kB / 281.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.01209, allocations: 247.2 kB / 281.8 MB, free: 8.742 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.0121, allocations: 8.141 kB / 281.8 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.01212, allocations: 15.94 kB / 281.8 MB, free: 8.719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.01213, allocations: 12 kB / 281.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.01226, allocations: 108.5 kB / 282 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.01336, allocations: 1.081 MB / 283 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/0.01362, allocations: 206.3 kB / 283.2 MB, free: 7.242 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.722e-05/0.01368, allocations: 55.64 kB / 283.3 MB, free: 7.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.609e-05/0.01377, allocations: 23.98 kB / 283.3 MB, free: 7.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.01379, allocations: 41.33 kB / 283.4 MB, free: 7.109 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.01379, allocations: 0 / 283.4 MB, free: 7.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008688/0.01466, allocations: 325.2 kB / 283.7 MB, free: 6.785 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.01469, allocations: 59.34 kB / 283.7 MB, free: 6.715 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.01479, allocations: 217.8 kB / 283.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.0148, allocations: 29.7 kB / 284 MB, free: 6.449 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.917e-05/0.01488, allocations: 231 kB / 284.2 MB, free: 6.219 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.01492, allocations: 91.25 kB / 284.3 MB, free: 6.129 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.043e-05/0.01498, allocations: 59.62 kB / 284.4 MB, free: 6.059 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.01509, allocations: 0.5039 MB / 284.9 MB, free: 5.543 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.834e-05/0.01513, allocations: 32.53 kB / 284.9 MB, free: 5.512 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.187e-05/0.01521, allocations: 123.6 kB / 285 MB, free: 5.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.01534, allocations: 174.6 kB / 285.2 MB, free: 5.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.01534, allocations: 3.938 kB / 285.2 MB, free: 5.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0002728/0.01562, allocations: 255.2 kB / 285.4 MB, free: 4.891 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.01563, allocations: 4 kB / 285.4 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.01564, allocations: 8.219 kB / 285.4 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001914/0.01583, allocations: 75.55 kB / 285.5 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.602e-05/0.01591, allocations: 43.92 kB / 285.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.01709, allocations: 2.287 MB / 287.8 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.348e-05/0.01716, allocations: 23.84 kB / 287.9 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.01717, allocations: 4 kB / 287.9 MB, free: 2.332 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 8.822e-05/0.01726, allocations: 180.4 kB / 288 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.01729, allocations: 27.94 kB / 288.1 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.01755, allocations: 212.6 kB / 288.3 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.01755, allocations: 4 kB / 288.3 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.01755, allocations: 4 kB / 288.3 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.01756, allocations: 0 / 288.3 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.01803, allocations: 0.5365 MB / 288.8 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.01804, allocations: 0 / 288.8 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.0181, allocations: 23.98 kB / 288.9 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001517/0.01825, allocations: 71.56 kB / 288.9 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.01826, allocations: 8 kB / 288.9 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1234/0.1416, allocations: 2.266 MB / 291.2 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1416, allocations: 2.812 kB / 291.2 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.142, allocations: 398.2 kB / 291.6 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.1421, allocations: 32.94 kB / 291.6 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.1421, allocations: 5.812 kB / 291.6 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.68e-05/0.1422, allocations: 4.031 kB / 291.6 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.1422, allocations: 22.11 kB / 291.7 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.1422, allocations: 5.531 kB / 291.7 MB, free: 20.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.153e-05/0.1423, allocations: 148.8 kB / 291.8 MB, free: 20.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1423, allocations: 0 / 291.8 MB, free: 20.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000396/0.1427, allocations: 103.5 kB / 291.9 MB, free: 20.61 MB / 266.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.0001905/0.1429, allocations: 132.5 kB / 292 MB, free: 20.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004109/0.1433, allocations: 346.3 kB / 292.4 MB, free: 20.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1433, allocations: 0.8438 kB / 292.4 MB, free: 20.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.1435, allocations: 292 kB / 292.7 MB, free: 20.15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000234/0.1437, allocations: 21.89 kB / 292.7 MB, free: 20.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009148/0.1446, allocations: 0.5033 MB / 293.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.954e-05/0.1447, allocations: 90.92 kB / 293.3 MB, free: 19.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.859e-05/0.1448, allocations: 20.86 kB / 293.3 MB, free: 19.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.41e-05/0.1448, allocations: 91.41 kB / 293.4 MB, free: 19.75 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1448, allocations: 0 / 293.4 MB, free: 19.75 MB / 266.7 MB Notification: Performance of Templates: time 0.006222/0.151, allocations: 2.969 MB / 296.3 MB, free: 19.51 MB / 266.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.851234485860914]