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.001583/0.001583, allocations: 117.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.002056/0.002056, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2318, allocations: 50.54 MB / 408.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003844/0.2357, allocations: 2.856 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.2375, allocations: 1.191 MB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.2377, allocations: 7.938 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.2392, allocations: 0.6259 MB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.2395, allocations: 139 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.2407, allocations: 0.6498 MB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.2411, allocations: 290.6 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004472/0.2416, allocations: 274.8 kB / 414.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.2418, allocations: 139.5 kB / 414.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002149/0.242, allocations: 171.2 kB / 415.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.2421, allocations: 28 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003695/0.2425, allocations: 179.8 kB / 415.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.002e-05/0.2425, allocations: 63.72 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.2427, allocations: 147.3 kB / 415.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006276/0.2433, allocations: 0.4972 MB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2433, allocations: 0 / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2433, allocations: 0 / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.2433, allocations: 4 kB / 416 MB, free: 10.31 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.001599/0.245, allocations: 0.7326 MB / 416.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.245, allocations: 12.02 kB / 416.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.349e-05/0.2451, allocations: 70.73 kB / 416.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008017/0.2459, allocations: 120.6 kB / 416.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.2462, allocations: 268.5 kB / 417.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.2463, allocations: 29.03 kB / 417.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.2463, allocations: 32.12 kB / 417.2 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004915/0.2468, allocations: 325.1 kB / 417.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.2469, allocations: 4 kB / 417.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.2469, allocations: 12 kB / 417.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.2469, allocations: 12 kB / 417.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.2473, allocations: 242.5 kB / 417.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.2492, allocations: 1.432 MB / 419.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.2499, allocations: 0.7033 MB / 420 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.2501, allocations: 112.3 kB / 420.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001851/0.2503, allocations: 170.2 kB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/0.2503, allocations: 34.56 kB / 420.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.343e-06/0.2503, allocations: 0 / 420.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001185/0.2515, allocations: 0.4906 MB / 420.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.2516, allocations: 55.41 kB / 420.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.2517, allocations: 175.3 kB / 421 MB, free: 4.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.2517, allocations: 29.7 kB / 421 MB, free: 4.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.75e-05/0.2518, allocations: 176.4 kB / 421.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.802e-05/0.2519, allocations: 87.22 kB / 421.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.739e-05/0.252, allocations: 53.98 kB / 421.3 MB, free: 4.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.2521, allocations: 330.8 kB / 421.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.2522, allocations: 68.53 kB / 421.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.2524, allocations: 133 kB / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.2527, allocations: 220.9 kB / 422.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2527, allocations: 0 / 422.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005469/0.2532, allocations: 339.5 kB / 422.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2533, allocations: 4 kB / 422.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2533, allocations: 4 kB / 422.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003006/0.2536, allocations: 81.02 kB / 422.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.2538, allocations: 43.92 kB / 422.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.2557, allocations: 2.018 MB / 424.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.2559, allocations: 27.81 kB / 424.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.2559, allocations: 12 kB / 424.6 MB, free: 1.043 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.0001496/0.256, allocations: 157.8 kB / 424.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.591e-05/0.2561, allocations: 23.8 kB / 424.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005436/0.2566, allocations: 284.1 kB / 425 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.2567, allocations: 0 / 425 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.2567, allocations: 4.281 kB / 425 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2567, allocations: 0 / 425 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009474/0.2576, allocations: 0.6895 MB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2576, allocations: 3.938 kB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.2578, allocations: 23.98 kB / 425.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002293/0.258, allocations: 76.75 kB / 425.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.258, allocations: 11.98 kB / 425.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.2599, allocations: 2.022 MB / 427.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2599, allocations: 0 / 427.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006256/0.2605, allocations: 456.4 kB / 428.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.359e-05/0.2606, allocations: 116.9 kB / 428.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.2606, allocations: 4 kB / 428.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.2608, allocations: 4 kB / 428.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.2608, allocations: 23.95 kB / 428.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.2608, allocations: 8 kB / 428.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001009/0.2609, allocations: 123.5 kB / 428.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2609, allocations: 0 / 428.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004783/0.2614, allocations: 99.84 kB / 428.7 MB, free: 12.67 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.0009764/0.2624, allocations: 1.011 MB / 429.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006084/0.263, allocations: 350.3 kB / 430 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.263, allocations: 4.438 kB / 430 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003274/0.2634, allocations: 250.5 kB / 430.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.2637, allocations: 19.98 kB / 430.3 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.2667, allocations: 2.515 MB / 432.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.267, allocations: 0.7521 MB / 433.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.674e-05/0.2671, allocations: 17.95 kB / 433.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.659e-05/0.2672, allocations: 75.41 kB / 433.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2672, allocations: 4 kB / 433.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.2938, allocations: 5.12 MB / 438.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.522/9.816, allocations: 8 kB / 438.8 MB, free: 2.527 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.0.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