Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001217/0.001217, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.007193/0.007193, allocations: 162.9 kB / 24.69 MB, free: 8.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8902/0.8902, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.199e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003635/0.003657, allocations: 2.529 MB / 301 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1151/0.1188, allocations: 1.117 MB / 302.1 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002457/0.119, allocations: 7.781 kB / 302.1 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.1201, allocations: 0.6012 MB / 302.7 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003317/0.1204, allocations: 134.3 kB / 302.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008287/0.1213, allocations: 0.6087 MB / 303.4 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.1216, allocations: 312.8 kB / 303.7 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.1219, allocations: 238.8 kB / 304 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.1221, allocations: 188.3 kB / 304.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.1223, allocations: 126.4 kB / 304.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.1223, allocations: 25.09 kB / 304.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002823/0.1226, allocations: 169 kB / 304.5 MB, free: 12.94 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.404e-05/0.1226, allocations: 65.36 kB / 304.5 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.441e-05/0.1227, allocations: 96.47 kB / 304.6 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005306/0.1232, allocations: 0.5005 MB / 305.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1232, allocations: 4 kB / 305.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1232, allocations: 1.875 kB / 305.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1232, allocations: 0 / 305.1 MB, free: 12.81 MB / 282.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.001059/0.1243, allocations: 0.652 MB / 305.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1243, allocations: 12.34 kB / 305.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.057e-05/0.1244, allocations: 69.16 kB / 305.9 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004325/0.1248, allocations: 125.2 kB / 306 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.1251, allocations: 206.4 kB / 306.2 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.1251, allocations: 25.53 kB / 306.2 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.92e-05/0.1251, allocations: 29.98 kB / 306.2 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003677/0.1255, allocations: 337.4 kB / 306.6 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.1255, allocations: 1.375 kB / 306.6 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.1255, allocations: 15.38 kB / 306.6 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.1256, allocations: 7 kB / 306.6 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.1258, allocations: 239.2 kB / 306.8 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.127, allocations: 1.093 MB / 307.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.1273, allocations: 232.1 kB / 308.1 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1274, allocations: 93.52 kB / 308.2 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.505e-05/0.1275, allocations: 12.11 kB / 308.2 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.298e-05/0.1275, allocations: 37.73 kB / 308.3 MB, free: 10.85 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.744e-06/0.1275, allocations: 0 / 308.3 MB, free: 10.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007374/0.1283, allocations: 413.9 kB / 308.7 MB, free: 10.69 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.048e-05/0.1283, allocations: 57.97 kB / 308.7 MB, free: 10.62 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1284, allocations: 173.9 kB / 308.9 MB, free: 10.49 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.969e-06/0.1284, allocations: 34.77 kB / 308.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.614e-05/0.1285, allocations: 180.5 kB / 309.1 MB, free: 10.3 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.527e-05/0.1285, allocations: 82.11 kB / 309.2 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.576e-05/0.1286, allocations: 53.38 kB / 309.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.756e-05/0.1286, allocations: 329.5 kB / 309.6 MB, free: 9.883 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.241e-05/0.1287, allocations: 78.12 kB / 309.7 MB, free: 9.848 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.698e-05/0.1288, allocations: 128.4 kB / 309.8 MB, free: 9.754 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.129, allocations: 224 kB / 310 MB, free: 9.602 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.129, allocations: 3.938 kB / 310 MB, free: 9.598 MB / 282.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003548/0.1293, allocations: 319.5 kB / 310.3 MB, free: 9.445 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.1293, allocations: 10.25 kB / 310.3 MB, free: 9.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1293, allocations: 2.281 kB / 310.3 MB, free: 9.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.1295, allocations: 79.55 kB / 310.4 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.233e-05/0.1296, allocations: 46.11 kB / 310.5 MB, free: 9.406 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.1307, allocations: 1.905 MB / 312.4 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.806e-05/0.1308, allocations: 26.28 kB / 312.4 MB, free: 7.715 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.1308, allocations: 8.531 kB / 312.4 MB, free: 7.715 MB / 282.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.634e-05/0.1309, allocations: 157.6 kB / 312.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.1309, allocations: 14.84 kB / 312.6 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003331/0.1312, allocations: 277.8 kB / 312.8 MB, free: 7.422 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1312, allocations: 5.688 kB / 312.8 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1312, allocations: 2.594 kB / 312.8 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1312, allocations: 6.625 kB / 312.8 MB, free: 7.414 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005546/0.1318, allocations: 0.629 MB / 313.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1318, allocations: 0.7969 kB / 313.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-05/0.1319, allocations: 25.69 kB / 313.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001358/0.132, allocations: 73.69 kB / 313.6 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.132, allocations: 13.95 kB / 313.6 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009326/0.1329, allocations: 1.9 MB / 315.5 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1329, allocations: 0.7969 kB / 315.5 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003739/0.1333, allocations: 453.3 kB / 315.9 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-05/0.1334, allocations: 38.64 kB / 316 MB, free: 4.973 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1334, allocations: 6.203 kB / 316 MB, free: 4.969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.709e-05/0.1334, allocations: 1.25 kB / 316 MB, free: 4.969 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.959e-05/0.1335, allocations: 23.92 kB / 316 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.1335, allocations: 4.594 kB / 316 MB, free: 4.965 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.72e-05/0.1335, allocations: 125.8 kB / 316.1 MB, free: 4.875 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1335, allocations: 0 / 316.1 MB, free: 4.875 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003283/0.1339, allocations: 99.58 kB / 316.2 MB, free: 4.848 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.000566/0.1344, allocations: 0.9979 MB / 317.2 MB, free: 4.035 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003969/0.1348, allocations: 349.2 kB / 317.6 MB, free: 3.824 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1348, allocations: 0 / 317.6 MB, free: 3.824 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.135, allocations: 238.5 kB / 317.8 MB, free: 3.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.1352, allocations: 16 kB / 317.8 MB, free: 3.652 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.1371, allocations: 2.479 MB / 320.3 MB, free: 1.812 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.1372, allocations: 155.8 kB / 320.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.506e-05/0.1373, allocations: 20.36 kB / 320.5 MB, free: 1.723 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.813e-05/0.1373, allocations: 72.3 kB / 320.5 MB, free: 1.664 MB / 282.7 MB Notification: Performance of SimCode: time 4e-07/0.1373, allocations: 0 / 320.5 MB, free: 1.664 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.1588, allocations: 5.724 MB / 326.3 MB, free: 15.4 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.565, allocations: 17.56 kB / 326.3 MB, free: 15.38 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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: 9.166159929707646]