Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000862/0.000862, allocations: 92.75 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009596/0.0009597, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002881/0.0002881, allocations: 7.938 kB / 301.4 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 50.43 MB / 351.9 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003102/0.117, allocations: 2.475 MB / 354.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1189, allocations: 1.126 MB / 355.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.1192, allocations: 8 kB / 355.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004157/0.1196, allocations: 127.5 kB / 355.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003983/0.12, allocations: 107.3 kB / 355.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.1214, allocations: 0.6462 MB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.1218, allocations: 286.5 kB / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001011/0.1228, allocations: 0.5733 MB / 357.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.123, allocations: 107.6 kB / 357.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.1232, allocations: 143.4 kB / 357.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.31e-05/0.1233, allocations: 16 kB / 357.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003898/0.1237, allocations: 163.8 kB / 357.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.341e-05/0.1237, allocations: 51.77 kB / 357.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.1239, allocations: 160.9 kB / 357.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005351/0.1244, allocations: 486.6 kB / 358.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1244, allocations: 0 / 358.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1244, allocations: 0 / 358.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1244, allocations: 0 / 358.3 MB, free: 12.94 MB / 302.1 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.00151/0.1259, allocations: 0.6709 MB / 359 MB, free: 12.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.126, allocations: 12.03 kB / 359 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007969/0.1268, allocations: 116.5 kB / 359.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.1271, allocations: 256.6 kB / 359.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.1271, allocations: 29.03 kB / 359.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.1272, allocations: 32.28 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005192/0.1277, allocations: 341 kB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.1277, allocations: 0 / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.1278, allocations: 12 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.1278, allocations: 11.94 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.1282, allocations: 242.5 kB / 360 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.1301, allocations: 1.447 MB / 361.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006355/0.1307, allocations: 0.6957 MB / 362.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.1309, allocations: 112.8 kB / 362.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.131, allocations: 85.05 kB / 362.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.1311, allocations: 34.56 kB / 362.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.206e-06/0.1311, allocations: 3.984 kB / 362.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001202/0.1323, allocations: 0.4915 MB / 362.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.1323, allocations: 55.41 kB / 362.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.1325, allocations: 180.2 kB / 363.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.1325, allocations: 29.7 kB / 363.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1326, allocations: 172 kB / 363.3 MB, free: 7.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.544e-05/0.1327, allocations: 90.75 kB / 363.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.142e-05/0.1328, allocations: 33.64 kB / 363.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1329, allocations: 326.8 kB / 363.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.133, allocations: 64.53 kB / 363.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.1332, allocations: 136.9 kB / 363.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.1335, allocations: 220.1 kB / 364.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1335, allocations: 3.984 kB / 364.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005471/0.134, allocations: 328.5 kB / 364.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.134, allocations: 4 kB / 364.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1341, allocations: 4 kB / 364.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003031/0.1344, allocations: 88.89 kB / 364.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.1345, allocations: 35.98 kB / 364.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.1363, allocations: 1.827 MB / 366.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.1365, allocations: 39.64 kB / 366.5 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.1365, allocations: 8 kB / 366.5 MB, free: 4.105 MB / 302.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: 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.0001417/0.1367, allocations: 149.8 kB / 366.6 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.1367, allocations: 15.81 kB / 366.6 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005456/0.1373, allocations: 283.6 kB / 366.9 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1373, allocations: 7.938 kB / 366.9 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1373, allocations: 12 kB / 366.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1373, allocations: 3.984 kB / 366.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009069/0.1382, allocations: 0.6822 MB / 367.6 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1382, allocations: 3.984 kB / 367.6 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.1384, allocations: 23.94 kB / 367.6 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002246/0.1386, allocations: 81.08 kB / 367.7 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.1386, allocations: 4 kB / 367.7 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.1403, allocations: 1.827 MB / 369.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1403, allocations: 0 / 369.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006099/0.1409, allocations: 450.2 kB / 370 MB, free: 360 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.217e-05/0.141, allocations: 116.8 kB / 370.1 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.141, allocations: 4 kB / 370.1 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.1412, allocations: 7.984 kB / 370.1 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.1412, allocations: 19.92 kB / 370.1 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.1412, allocations: 4.062 kB / 370.1 MB, free: 188 kB / 302.1 MB Notification: Performance of sorting global known variables: time 9.277e-05/0.1413, allocations: 135.5 kB / 370.3 MB, free: 52 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1414, allocations: 0 / 370.3 MB, free: 52 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.1992/0.3406, allocations: 95.39 kB / 370.4 MB, free: 24.18 MB / 302.1 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.0003323/0.3409, allocations: 123.7 kB / 370.5 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009283/0.3419, allocations: 352.8 kB / 370.8 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3419, allocations: 1.656 kB / 370.8 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003548/0.3423, allocations: 249.1 kB / 371.1 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004928/0.3428, allocations: 18.34 kB / 371.1 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.3439, allocations: 0.7416 MB / 371.8 MB, free: 23.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.3442, allocations: 0.7552 MB / 372.6 MB, free: 22.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.3443, allocations: 26.36 kB / 372.6 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.3444, allocations: 18.69 kB / 372.6 MB, free: 22.78 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3444, allocations: 3.828 kB / 372.6 MB, free: 22.78 MB / 302.1 MB Notification: Performance of Templates: time 0.006978/0.3513, allocations: 2.476 MB / 375.1 MB, free: 22.61 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches