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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001619/0.001619, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2672, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004361/0.2716, allocations: 2.852 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.2736, allocations: 1.203 MB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.2738, allocations: 4 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.2753, allocations: 0.6217 MB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00032/0.2757, allocations: 135 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.2769, allocations: 0.6576 MB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004062/0.2773, allocations: 290.6 kB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.2778, allocations: 270.8 kB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.2781, allocations: 139.5 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.2783, allocations: 167.3 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.233e-05/0.2784, allocations: 28 kB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003604/0.2787, allocations: 175.8 kB / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.588e-05/0.2788, allocations: 67.77 kB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.279, allocations: 155.2 kB / 415.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006659/0.2796, allocations: 0.4972 MB / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2796, allocations: 0 / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2797, allocations: 0 / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2797, allocations: 0 / 416 MB, free: 10.28 MB / 334.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.001717/0.2814, allocations: 0.7326 MB / 416.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.2814, allocations: 8.031 kB / 416.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.555e-05/0.2815, allocations: 70.72 kB / 416.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008224/0.2824, allocations: 116.7 kB / 416.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004044/0.2828, allocations: 268.5 kB / 417.2 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.2828, allocations: 29.03 kB / 417.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.2829, allocations: 40.12 kB / 417.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005516/0.2835, allocations: 333 kB / 417.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.2835, allocations: 0 / 417.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/0.2835, allocations: 16 kB / 417.6 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.2835, allocations: 8 kB / 417.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.284, allocations: 238.5 kB / 417.8 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.2861, allocations: 1.44 MB / 419.3 MB, free: 6.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.2868, allocations: 0.6958 MB / 420 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.287, allocations: 116.7 kB / 420.1 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001941/0.2872, allocations: 166.2 kB / 420.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.2872, allocations: 38.56 kB / 420.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.2873, allocations: 0 / 420.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001268/0.2885, allocations: 494.5 kB / 420.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.2886, allocations: 55.41 kB / 420.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.2888, allocations: 171.3 kB / 421 MB, free: 4.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.2888, allocations: 37.64 kB / 421 MB, free: 4.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.2889, allocations: 180.3 kB / 421.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.487e-05/0.289, allocations: 91.2 kB / 421.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.2891, allocations: 53.98 kB / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2893, allocations: 326.8 kB / 421.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.2894, allocations: 68.55 kB / 421.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.2896, allocations: 133 kB / 421.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.2899, allocations: 216.9 kB / 422.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2899, allocations: 0 / 422.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005926/0.2905, allocations: 335.5 kB / 422.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.2905, allocations: 8.219 kB / 422.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.2905, allocations: 4 kB / 422.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003355/0.2909, allocations: 72.81 kB / 422.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.291, allocations: 43.91 kB / 422.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/0.2933, allocations: 2.026 MB / 424.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.2935, allocations: 31.88 kB / 424.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.2935, allocations: 15.94 kB / 424.6 MB, free: 1.004 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.0001836/0.2937, allocations: 145.8 kB / 424.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.542e-05/0.2938, allocations: 23.8 kB / 424.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006032/0.2944, allocations: 292 kB / 425 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2944, allocations: 4 kB / 425 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2944, allocations: 4 kB / 425 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.2944, allocations: 0 / 425 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.2955, allocations: 0.6856 MB / 425.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2955, allocations: 0 / 425.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.2957, allocations: 27.98 kB / 425.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002492/0.2959, allocations: 72.81 kB / 425.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.296, allocations: 7.938 kB / 425.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/0.2981, allocations: 2.018 MB / 427.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2982, allocations: 8.094 kB / 427.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006952/0.2989, allocations: 456.3 kB / 428.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.299, allocations: 112.9 kB / 428.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.299, allocations: 4 kB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.2991, allocations: 4 kB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.831e-05/0.2992, allocations: 24.03 kB / 428.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.2992, allocations: 8 kB / 428.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001226/0.2993, allocations: 127.2 kB / 428.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2993, allocations: 0 / 428.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004917/0.2998, allocations: 99.77 kB / 428.7 MB, free: 12.64 MB / 350.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.001104/0.3009, allocations: 1.007 MB / 429.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006388/0.3016, allocations: 350.5 kB / 430 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3016, allocations: 4 kB / 430 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.302, allocations: 254.4 kB / 430.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.3023, allocations: 18.67 kB / 430.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.3056, allocations: 2.513 MB / 432.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.3061, allocations: 0.756 MB / 433.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.3062, allocations: 25.94 kB / 433.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.3063, allocations: 75.41 kB / 433.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3063, allocations: 0 / 433.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03394/0.3403, allocations: 5.123 MB / 438.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.77, allocations: 11 kB / 438.8 MB, free: 2.492 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches