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.001273/0.001273, allocations: 108.8 kB / 19.16 MB, free: 3.871 MB / 14.72 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.001324/0.001324, allocations: 205.6 kB / 22.12 MB, free: 0.9297 MB / 14.72 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 1.386/1.386, allocations: 207.6 MB / 232.5 MB, free: 3.738 MB / 174.1 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002446/0.002446, allocations: 55.92 kB / 343 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1051, allocations: 49.12 MB / 392.1 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004052/0.1091, allocations: 2.72 MB / 394.8 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.1112, allocations: 1.208 MB / 396 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.1114, allocations: 8 kB / 396.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001541/0.1129, allocations: 0.6302 MB / 396.7 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002856/0.1132, allocations: 127.1 kB / 396.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.1145, allocations: 0.6691 MB / 397.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004525/0.1149, allocations: 290.6 kB / 397.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004277/0.1153, allocations: 215 kB / 398 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.1155, allocations: 127.6 kB / 398.1 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.1158, allocations: 163.4 kB / 398.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.1158, allocations: 28 kB / 398.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003389/0.1161, allocations: 179.8 kB / 398.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.118e-05/0.1162, allocations: 59.77 kB / 398.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.1164, allocations: 155.3 kB / 398.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000651/0.117, allocations: 494.2 kB / 399.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.117, allocations: 4 kB / 399.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.117, allocations: 4 kB / 399.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.117, allocations: 0 / 399.2 MB, free: 1.617 MB / 318.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.00169/0.1187, allocations: 0.7287 MB / 399.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.1188, allocations: 16.03 kB / 399.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.986e-05/0.1188, allocations: 8.844 kB / 399.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.152e-05/0.1189, allocations: 66.72 kB / 400 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007999/0.1197, allocations: 116.7 kB / 400.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.1201, allocations: 268.5 kB / 400.3 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.1201, allocations: 25.03 kB / 400.4 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.1202, allocations: 39.94 kB / 400.4 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005938/0.1208, allocations: 341 kB / 400.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.1208, allocations: 0 / 400.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.1208, allocations: 12 kB / 400.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.1209, allocations: 8 kB / 400.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.1213, allocations: 238.5 kB / 401 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.1234, allocations: 1.44 MB / 402.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007295/0.1241, allocations: 0.6847 MB / 403.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.1243, allocations: 89.58 kB / 403.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.1244, allocations: 93.09 kB / 403.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.1244, allocations: 38.5 kB / 403.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.1244, allocations: 0 / 403.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001233/0.1257, allocations: 487.3 kB / 403.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.1257, allocations: 51.41 kB / 403.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.1259, allocations: 180.3 kB / 404 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.1259, allocations: 33.7 kB / 404.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.126, allocations: 176.4 kB / 404.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.455e-05/0.1261, allocations: 99.14 kB / 404.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.435e-05/0.1262, allocations: 49.98 kB / 404.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1263, allocations: 326.8 kB / 404.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.1264, allocations: 64.53 kB / 404.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.1266, allocations: 136.1 kB / 404.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/0.1269, allocations: 216.1 kB / 405.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1269, allocations: 7.938 kB / 405.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005543/0.1275, allocations: 320.8 kB / 405.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1275, allocations: 4 kB / 405.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1275, allocations: 4 kB / 405.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003137/0.1278, allocations: 76.73 kB / 405.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.1279, allocations: 43.92 kB / 405.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002082/0.13, allocations: 2.037 MB / 407.6 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.1301, allocations: 27.81 kB / 407.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.1302, allocations: 8 kB / 407.6 MB, free: 8.465 MB / 334.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.0001425/0.1303, allocations: 149.8 kB / 407.8 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.904e-05/0.1304, allocations: 27.81 kB / 407.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005505/0.1309, allocations: 276.1 kB / 408.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1309, allocations: 4 kB / 408.1 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.1309, allocations: 0 / 408.1 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1309, allocations: 0 / 408.1 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009779/0.1319, allocations: 0.6836 MB / 408.8 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1319, allocations: 7.938 kB / 408.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.132, allocations: 23.98 kB / 408.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002355/0.1322, allocations: 72.81 kB / 408.9 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.1323, allocations: 7.984 kB / 408.9 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.1343, allocations: 2.034 MB / 410.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1343, allocations: 8.016 kB / 410.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006475/0.135, allocations: 440.5 kB / 411.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.77e-05/0.1351, allocations: 117 kB / 411.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.1351, allocations: 4 kB / 411.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.1352, allocations: 12.06 kB / 411.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.1352, allocations: 15.98 kB / 411.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.1352, allocations: 7.984 kB / 411.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000103/0.1354, allocations: 131.5 kB / 411.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1354, allocations: 0 / 411.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004469/0.1358, allocations: 99.72 kB / 411.7 MB, free: 4.109 MB / 334.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.00103/0.1368, allocations: 0.9978 MB / 412.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006105/0.1374, allocations: 346.4 kB / 413.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1374, allocations: 0 / 413.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.1378, allocations: 234.5 kB / 413.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.1381, allocations: 16.44 kB / 413.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.1412, allocations: 2.508 MB / 415.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.1416, allocations: 0.7518 MB / 416.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.906e-05/0.1417, allocations: 29.94 kB / 416.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.1418, allocations: 71.41 kB / 416.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1418, allocations: 0 / 416.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.1687, allocations: 5.085 MB / 421.8 MB, free: 9.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.23, allocations: 8 kB / 421.8 MB, free: 9.809 MB / 350.1 MB " [Timeout remaining time 650] (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/jenkins1/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/jenkins1/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: 12.564695394015871]