Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007975/0.0007975, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008231/0.0008231, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8167/0.8167, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.187e-06/1.053e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002332/0.002342, allocations: 2.678 MB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.003397, allocations: 1.141 MB / 328.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.215e-05/0.00349, allocations: 4 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007461/0.004236, allocations: 0.5996 MB / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001842/0.00442, allocations: 150.8 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006364/0.005056, allocations: 0.6145 MB / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004761/0.005532, allocations: 310.4 kB / 330.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.005818, allocations: 231.1 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.005977, allocations: 199.5 kB / 330.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.006096, allocations: 123.7 kB / 330.6 MB, free: 9.887 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.006122, allocations: 24 kB / 330.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.006321, allocations: 187.6 kB / 330.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.99e-05/0.00635, allocations: 59.77 kB / 330.9 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.006411, allocations: 99.77 kB / 331 MB, free: 9.523 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.006797, allocations: 0.514 MB / 331.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.006799, allocations: 0 / 331.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.006799, allocations: 0 / 331.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.006804, allocations: 0 / 331.5 MB, free: 9.008 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.0008952/0.007699, allocations: 0.6573 MB / 332.1 MB, free: 8.316 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.007731, allocations: 12.03 kB / 332.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.741e-05/0.007778, allocations: 66.72 kB / 332.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003844/0.008163, allocations: 116.7 kB / 332.3 MB, free: 8.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.008378, allocations: 210 kB / 332.5 MB, free: 7.887 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.008393, allocations: 21.03 kB / 332.5 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.008429, allocations: 32.38 kB / 332.6 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.008762, allocations: 345.5 kB / 332.9 MB, free: 7.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.008775, allocations: 3.938 kB / 332.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.008796, allocations: 16 kB / 332.9 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.008802, allocations: 11.94 kB / 332.9 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.009056, allocations: 234.5 kB / 333.2 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.01014, allocations: 1.082 MB / 334.3 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.01045, allocations: 238.6 kB / 334.5 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.375e-05/0.01054, allocations: 94.19 kB / 334.6 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.78e-05/0.01062, allocations: 15.98 kB / 334.6 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.01064, allocations: 38.42 kB / 334.6 MB, free: 5.672 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.01064, allocations: 0 / 334.6 MB, free: 5.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006689/0.01131, allocations: 424.2 kB / 335.1 MB, free: 5.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/0.01133, allocations: 55.41 kB / 335.1 MB, free: 5.184 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.01144, allocations: 172.2 kB / 335.3 MB, free: 5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.01145, allocations: 37.7 kB / 335.3 MB, free: 4.957 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.617e-05/0.01152, allocations: 184.3 kB / 335.5 MB, free: 4.773 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/0.01156, allocations: 83.28 kB / 335.6 MB, free: 4.691 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/0.01161, allocations: 49.94 kB / 335.6 MB, free: 4.637 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.01e-05/0.01168, allocations: 330.8 kB / 335.9 MB, free: 4.305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.604e-05/0.01176, allocations: 68.53 kB / 336 MB, free: 4.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.902e-05/0.01186, allocations: 133 kB / 336.1 MB, free: 4.086 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.01205, allocations: 221.1 kB / 336.4 MB, free: 3.848 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.01205, allocations: 0 / 336.4 MB, free: 3.848 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003382/0.01239, allocations: 327.6 kB / 336.7 MB, free: 3.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.0124, allocations: 8.219 kB / 336.7 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.0124, allocations: 4 kB / 336.7 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/0.01258, allocations: 72.8 kB / 336.8 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.445e-05/0.01266, allocations: 47.92 kB / 336.8 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.01405, allocations: 1.922 MB / 338.7 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.968e-05/0.01411, allocations: 27.81 kB / 338.8 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.01413, allocations: 8 kB / 338.8 MB, free: 1.312 MB / 298.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 9.051e-05/0.01422, allocations: 148.8 kB / 338.9 MB, free: 1.156 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.01424, allocations: 15.91 kB / 338.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000329/0.01457, allocations: 288.1 kB / 339.2 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.01457, allocations: 4 kB / 339.2 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.01457, allocations: 0 / 339.2 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.01458, allocations: 3.938 kB / 339.2 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005469/0.01512, allocations: 0.6378 MB / 339.9 MB, free: 160 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.01512, allocations: 4 kB / 339.9 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.595e-05/0.01518, allocations: 24 kB / 339.9 MB, free: 132 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000121/0.0153, allocations: 68.8 kB / 339.9 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.01532, allocations: 12 kB / 340 MB, free: 48 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.01639, allocations: 1.907 MB / 341.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.01639, allocations: 3.938 kB / 341.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003763/0.01677, allocations: 448.5 kB / 342.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.01681, allocations: 35.84 kB / 342.3 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.01682, allocations: 4 kB / 342.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.855e-05/0.01688, allocations: 8.125 kB / 342.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.387e-05/0.01691, allocations: 15.97 kB / 342.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.749e-06/0.01692, allocations: 15.98 kB / 342.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.904e-05/0.01697, allocations: 123.5 kB / 342.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01697, allocations: 0 / 342.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002801/0.01725, allocations: 99.78 kB / 342.6 MB, free: 13.27 MB / 314.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.000611/0.01787, allocations: 1 MB / 343.6 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003726/0.01824, allocations: 342.2 kB / 343.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01824, allocations: 448 / 343.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.01868, allocations: 245.5 kB / 344.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.0189, allocations: 26.75 kB / 344.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.02079, allocations: 2.471 MB / 346.7 MB, free: 9.008 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.752e-05/0.02087, allocations: 146.5 kB / 346.8 MB, free: 8.844 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.864e-05/0.02093, allocations: 25.94 kB / 346.8 MB, free: 8.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.094e-05/0.021, allocations: 80.41 kB / 346.9 MB, free: 8.742 MB / 314.7 MB Notification: Performance of SimCode: time 4.01e-07/0.021, allocations: 0 / 346.9 MB, free: 8.742 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.04125, allocations: 5.903 MB / 352.8 MB, free: 2.977 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.279/7.32, allocations: 13.7 kB / 352.8 MB, free: 2.969 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.81685224082321]