Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.8 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009802/0.0009802, allocations: 106.2 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000944/0.0009441, allocations: 51.91 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1958, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.004427/0.2003, allocations: 5.23 MB / 412.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.2022, allocations: 1.718 MB / 414 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.2025, allocations: 16 kB / 414 MB, free: 20.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002195/0.2047, allocations: 1.331 MB / 415.4 MB, free: 19.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004756/0.2052, allocations: 262.4 kB / 415.6 MB, free: 19.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000964/0.2061, allocations: 0.6471 MB / 416.3 MB, free: 18.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005069/0.2066, allocations: 0.7817 MB / 417 MB, free: 17.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008038/0.2075, allocations: 0.6891 MB / 417.7 MB, free: 17.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.2077, allocations: 338.7 kB / 418.1 MB, free: 16.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003308/0.2081, allocations: 458.1 kB / 418.5 MB, free: 16.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.2081, allocations: 56 kB / 418.6 MB, free: 16.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00039/0.2085, allocations: 243.8 kB / 418.8 MB, free: 16.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.966e-05/0.2086, allocations: 163.3 kB / 419 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000225/0.2089, allocations: 409.9 kB / 419.4 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007246/0.2096, allocations: 1.168 MB / 420.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2096, allocations: 3.938 kB / 420.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.2096, allocations: 0 / 420.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.2096, allocations: 0 / 420.5 MB, free: 14.29 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003295/0.2129, allocations: 1.447 MB / 422 MB, free: 12.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.213, allocations: 8.031 kB / 422 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.2144, allocations: 259.7 kB / 422.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.2146, allocations: 252.7 kB / 422.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.217e-05/0.2147, allocations: 74.38 kB / 422.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.2148, allocations: 108.2 kB / 422.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.216, allocations: 0.9386 MB / 423.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.216, allocations: 3.984 kB / 423.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.454e-05/0.2161, allocations: 40 kB / 423.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.2161, allocations: 24 kB / 423.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.2172, allocations: 0.7887 MB / 424.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004022/0.2212, allocations: 3.626 MB / 428.1 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.2227, allocations: 1.252 MB / 429.3 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004198/0.2232, allocations: 377.1 kB / 429.7 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.2233, allocations: 179.2 kB / 429.9 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.2233, allocations: 51.5 kB / 429.9 MB, free: 4.406 MB / 298.7 MB Notification: Performance of pre-optimization done (n=87): time 2.565e-06/0.2233, allocations: 0 / 429.9 MB, free: 4.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=87): time 0.001789/0.2251, allocations: 1.304 MB / 431.2 MB, free: 3.008 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.2252, allocations: 90.11 kB / 431.3 MB, free: 2.902 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.2255, allocations: 364.3 kB / 431.7 MB, free: 2.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.2255, allocations: 37.7 kB / 431.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.2256, allocations: 382.9 kB / 432.1 MB, free: 2.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.2258, allocations: 299.7 kB / 432.4 MB, free: 1.816 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.226, allocations: 178.7 kB / 432.6 MB, free: 1.637 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.673e-05/0.226, allocations: 362.8 kB / 432.9 MB, free: 1.273 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003704/0.2264, allocations: 262.5 kB / 433.2 MB, free: 1.016 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.2269, allocations: 479.3 kB / 433.6 MB, free: 484 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009216/0.2278, allocations: 0.7745 MB / 434.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2278, allocations: 0 / 434.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001515/0.2293, allocations: 0.9768 MB / 435.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2294, allocations: 8 kB / 435.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.2294, allocations: 4 kB / 435.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003588/0.2297, allocations: 127.3 kB / 435.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007422/0.2305, allocations: 203.7 kB / 435.7 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/0.234, allocations: 5.578 MB / 441.3 MB, free: 8.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005491/0.2346, allocations: 98.91 kB / 441.4 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.138e-05/0.2347, allocations: 43.98 kB / 441.4 MB, free: 8.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000291/0.235, allocations: 238 kB / 441.7 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2351, allocations: 55.34 kB / 441.7 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/0.2365, allocations: 0.8404 MB / 442.6 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2365, allocations: 11.94 kB / 442.6 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.2366, allocations: 7.938 kB / 442.6 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.2366, allocations: 3.984 kB / 442.6 MB, free: 6.836 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.2392, allocations: 2.094 MB / 444.7 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2392, allocations: 0 / 444.7 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005636/0.2398, allocations: 139.8 kB / 444.8 MB, free: 4.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002641/0.2401, allocations: 103.7 kB / 444.9 MB, free: 4.324 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.2401, allocations: 23.98 kB / 444.9 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/0.2433, allocations: 5.302 MB / 450.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/0.2433, allocations: 7.984 kB / 450.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002834/0.2461, allocations: 2.59 MB / 452.8 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.2463, allocations: 140.3 kB / 453 MB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.2463, allocations: 16 kB / 453 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.2467, allocations: 24 kB / 453 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.2468, allocations: 72.53 kB / 453.1 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.044e-05/0.2469, allocations: 24 kB / 453.1 MB, free: 11.4 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002467/0.2471, allocations: 251.2 kB / 453.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2472, allocations: 0 / 453.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009642/0.2481, allocations: 296.3 kB / 453.7 MB, free: 10.86 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002344/0.2484, allocations: 151.1 kB / 453.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.2498, allocations: 1.166 MB / 455 MB, free: 9.492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.2499, allocations: 3.938 kB / 455 MB, free: 9.488 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007907/0.2507, allocations: 0.7956 MB / 455.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.2512, allocations: 69.94 kB / 455.8 MB, free: 8.574 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.2539, allocations: 2.189 MB / 458 MB, free: 6.324 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.2543, allocations: 0.9305 MB / 459 MB, free: 5.359 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005183/0.2549, allocations: 109.1 kB / 459.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.255, allocations: 51.42 kB / 459.1 MB, free: 5.203 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.255, allocations: 0 / 459.1 MB, free: 5.203 MB / 330.7 MB Notification: Performance of Templates: time 0.0121/0.2671, allocations: 7.174 MB / 466.3 MB, free: 14.05 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches