Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001977, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.2 MB / 254.5 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002692/0.002692, allocations: 67.89 kB / 373.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0941/0.09679, allocations: 53.33 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004339/0.1011, allocations: 2.859 MB / 429.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.1032, allocations: 1.223 MB / 430.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.1033, allocations: 11.94 kB / 430.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.1048, allocations: 0.6217 MB / 431.4 MB, free: 284 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.1051, allocations: 139 kB / 431.5 MB, free: 144 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.1065, allocations: 0.6537 MB / 432.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004088/0.1069, allocations: 298.6 kB / 432.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004056/0.1073, allocations: 206.8 kB / 432.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.1075, allocations: 135.5 kB / 432.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002456/0.1077, allocations: 171.4 kB / 433 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.1078, allocations: 28 kB / 433 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003632/0.1082, allocations: 187.8 kB / 433.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.512e-05/0.1082, allocations: 59.77 kB / 433.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.1083, allocations: 143.3 kB / 433.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006511/0.109, allocations: 0.4981 MB / 433.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.109, allocations: 0 / 433.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.109, allocations: 0 / 433.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.109, allocations: 0 / 433.9 MB, free: 13.77 MB / 366.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.001669/0.1107, allocations: 0.7365 MB / 434.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1107, allocations: 8.031 kB / 434.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.704e-05/0.1108, allocations: 70.72 kB / 434.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008574/0.1116, allocations: 112.7 kB / 434.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.112, allocations: 270.2 kB / 435.1 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.1121, allocations: 25.03 kB / 435.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.816e-05/0.1121, allocations: 36.06 kB / 435.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.1127, allocations: 341 kB / 435.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.1127, allocations: 3.938 kB / 435.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.1127, allocations: 12 kB / 435.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.1127, allocations: 8 kB / 435.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004268/0.1132, allocations: 242.5 kB / 435.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.1153, allocations: 1.444 MB / 437.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008037/0.1161, allocations: 0.6755 MB / 437.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.1162, allocations: 96.77 kB / 437.9 MB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001944/0.1164, allocations: 174.2 kB / 438.1 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1165, allocations: 42.5 kB / 438.1 MB, free: 9.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.482e-06/0.1165, allocations: 0 / 438.1 MB, free: 9.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.001314/0.1178, allocations: 495.4 kB / 438.6 MB, free: 8.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.1178, allocations: 55.41 kB / 438.7 MB, free: 8.523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.118, allocations: 171.3 kB / 438.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.118, allocations: 29.7 kB / 438.9 MB, free: 8.305 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.1181, allocations: 180.4 kB / 439.1 MB, free: 8.125 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.561e-05/0.1182, allocations: 91.2 kB / 439.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.286e-05/0.1183, allocations: 49.98 kB / 439.2 MB, free: 7.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1185, allocations: 330.8 kB / 439.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.1186, allocations: 76.47 kB / 439.6 MB, free: 7.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.1188, allocations: 128.2 kB / 439.7 MB, free: 7.426 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003279/0.1191, allocations: 220.9 kB / 439.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1191, allocations: 0 / 439.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000623/0.1197, allocations: 331.8 kB / 440.3 MB, free: 6.855 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1197, allocations: 4 kB / 440.3 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1198, allocations: 4 kB / 440.3 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003041/0.1201, allocations: 76.73 kB / 440.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.1202, allocations: 47.91 kB / 440.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.1225, allocations: 2.03 MB / 442.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.1226, allocations: 31.75 kB / 442.4 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1226, allocations: 8 kB / 442.5 MB, free: 4.512 MB / 366.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.0001507/0.1228, allocations: 153.8 kB / 442.6 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.103e-05/0.1228, allocations: 23.86 kB / 442.6 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005807/0.1234, allocations: 272.9 kB / 442.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1234, allocations: 4 kB / 442.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.1234, allocations: 0 / 442.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1234, allocations: 3.984 kB / 442.9 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.1245, allocations: 0.6943 MB / 443.6 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1245, allocations: 4 kB / 443.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.1246, allocations: 27.98 kB / 443.6 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/0.1248, allocations: 64.81 kB / 443.7 MB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.1249, allocations: 12 kB / 443.7 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002103/0.127, allocations: 2.026 MB / 445.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.127, allocations: 0 / 445.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000713/0.1277, allocations: 464.4 kB / 446.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.1278, allocations: 113 kB / 446.3 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.1278, allocations: 4 kB / 446.3 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.1279, allocations: 4 kB / 446.3 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.128, allocations: 23.97 kB / 446.3 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.128, allocations: 4 kB / 446.3 MB, free: 380 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001191/0.1281, allocations: 123.2 kB / 446.4 MB, free: 256 kB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1281, allocations: 0 / 446.4 MB, free: 256 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004844/0.1286, allocations: 95.84 kB / 446.5 MB, free: 160 kB / 366.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.1601/0.2887, allocations: 0.9971 MB / 447.5 MB, free: 23.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.2893, allocations: 348.9 kB / 447.9 MB, free: 23.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2893, allocations: 0 / 447.9 MB, free: 23.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.2895, allocations: 243.2 kB / 448.1 MB, free: 23.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.2899, allocations: 17.69 kB / 448.1 MB, free: 23.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.2923, allocations: 2.495 MB / 450.6 MB, free: 22.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001519/0.2925, allocations: 0.7554 MB / 451.4 MB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.659e-05/0.2925, allocations: 28.11 kB / 451.4 MB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.55e-05/0.2926, allocations: 76.23 kB / 451.5 MB, free: 21.35 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2926, allocations: 0 / 451.5 MB, free: 21.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03213/0.3248, allocations: 5.205 MB / 456.7 MB, free: 20.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.41, allocations: 12.86 kB / 456.7 MB, free: 20.7 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 12.978761203121394]