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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8585/0.8585, allocations: 173.3 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_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_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.549e-05/2.802e-05, allocations: 13.45 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004294/0.004322, allocations: 2.64 MB / 321.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.006418, allocations: 1.086 MB / 322.2 MB, free: 2.629 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.006593, allocations: 8 kB / 322.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001499/0.008092, allocations: 0.6052 MB / 322.8 MB, free: 2.016 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003778/0.00847, allocations: 138.9 kB / 322.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.009678, allocations: 0.6367 MB / 323.6 MB, free: 1.242 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000517/0.01019, allocations: 314.4 kB / 323.9 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005703/0.01076, allocations: 235.1 kB / 324.1 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.0111, allocations: 191.5 kB / 324.3 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.01132, allocations: 127.6 kB / 324.4 MB, free: 400 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.573e-05/0.01137, allocations: 24 kB / 324.4 MB, free: 376 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.01182, allocations: 163.8 kB / 324.6 MB, free: 212 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.731e-05/0.01188, allocations: 63.77 kB / 324.6 MB, free: 148 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.01199, allocations: 103.7 kB / 324.7 MB, free: 44 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006927/0.01268, allocations: 0.5101 MB / 325.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.118e-06/0.01269, allocations: 4 kB / 325.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.01269, allocations: 0 / 325.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.0127, allocations: 0 / 325.3 MB, free: 15.53 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.001631/0.01433, allocations: 0.6456 MB / 325.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.98e-05/0.0144, allocations: 8.922 kB / 325.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.01451, allocations: 78.66 kB / 326 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007533/0.01526, allocations: 116.6 kB / 326.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005559/0.01582, allocations: 202 kB / 326.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.01585, allocations: 29.03 kB / 326.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.137e-05/0.01591, allocations: 32.33 kB / 326.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005591/0.01647, allocations: 341.6 kB / 326.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.01649, allocations: 3.938 kB / 326.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.01652, allocations: 8 kB / 326.7 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.01653, allocations: 8 kB / 326.7 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004304/0.01696, allocations: 242.5 kB / 327 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.01888, allocations: 1.082 MB / 328 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.01941, allocations: 237.8 kB / 328.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.01959, allocations: 96.77 kB / 328.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-05/0.01968, allocations: 4 kB / 328.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.01971, allocations: 34.56 kB / 328.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.835e-06/0.01971, allocations: 0 / 328.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001131/0.02084, allocations: 418.2 kB / 328.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.02088, allocations: 55.41 kB / 328.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.02103, allocations: 175.2 kB / 329 MB, free: 11.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.02105, allocations: 29.7 kB / 329.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.02115, allocations: 180.4 kB / 329.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.0212, allocations: 91.22 kB / 329.3 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.062e-05/0.02127, allocations: 49.98 kB / 329.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.02139, allocations: 326.8 kB / 329.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.054e-05/0.02148, allocations: 76.53 kB / 329.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.0216, allocations: 132.9 kB / 329.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.02182, allocations: 221 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.02183, allocations: 4 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004061/0.02224, allocations: 327.6 kB / 330.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.02226, allocations: 10.88 kB / 330.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.02227, allocations: 4 kB / 330.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002586/0.02253, allocations: 76.75 kB / 330.5 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.849e-05/0.02262, allocations: 43.92 kB / 330.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.02421, allocations: 1.907 MB / 332.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.474e-05/0.0243, allocations: 27.81 kB / 332.5 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.02432, allocations: 15.98 kB / 332.5 MB, free: 7.859 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 0.0001285/0.02445, allocations: 145.8 kB / 332.7 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.02448, allocations: 19.86 kB / 332.7 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003995/0.02488, allocations: 291 kB / 333 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.02488, allocations: 4 kB / 333 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.02489, allocations: 0 / 333 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.02489, allocations: 0 / 333 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006885/0.02558, allocations: 0.631 MB / 333.6 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.02558, allocations: 0 / 333.6 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.77e-05/0.02565, allocations: 31.92 kB / 333.6 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001517/0.0258, allocations: 76.8 kB / 333.7 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.02582, allocations: 4 kB / 333.7 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.02708, allocations: 1.911 MB / 335.6 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.02708, allocations: 0 / 335.6 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.02755, allocations: 455.1 kB / 336.1 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.02761, allocations: 31.86 kB / 336.1 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.02762, allocations: 8 kB / 336.1 MB, free: 4.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.016e-05/0.02768, allocations: 4 kB / 336.1 MB, free: 4.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.02773, allocations: 19.95 kB / 336.1 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.02774, allocations: 12.12 kB / 336.1 MB, free: 4.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.932e-05/0.02782, allocations: 123.5 kB / 336.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02782, allocations: 0 / 336.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003894/0.02821, allocations: 99.78 kB / 336.4 MB, free: 3.82 MB / 298.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.0008544/0.02907, allocations: 1.005 MB / 337.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005164/0.02958, allocations: 334.3 kB / 337.7 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.02958, allocations: 3.938 kB / 337.7 MB, free: 2.441 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.0298, allocations: 242.9 kB / 337.9 MB, free: 2.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.03013, allocations: 23.97 kB / 338 MB, free: 2.168 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.03253, allocations: 2.453 MB / 340.4 MB, free: 15.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.03266, allocations: 154.3 kB / 340.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.428e-05/0.03274, allocations: 25.94 kB / 340.6 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.738e-05/0.03282, allocations: 72.47 kB / 340.7 MB, free: 15.31 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.03282, allocations: 0 / 340.7 MB, free: 15.31 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/0.0681, allocations: 5.825 MB / 346.5 MB, free: 9.633 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/7.918, allocations: 1.172 kB / 346.5 MB, free: 9.633 MB / 314.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.615478040650487]