Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00152/0.00152, allocations: 121.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001828/0.001828, allocations: 200.6 kB / 18.74 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001319, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2955, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004138/0.2997, allocations: 2.857 MB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.3011, allocations: 0.7867 MB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.3013, allocations: 7.938 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.3016, allocations: 63.42 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.3019, allocations: 103.2 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.3022, allocations: 111.8 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003742/0.3025, allocations: 398.5 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.3028, allocations: 126.9 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.3031, allocations: 167.4 kB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.3033, allocations: 171.2 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.219e-05/0.3034, allocations: 36 kB / 413.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.399e-05/0.3034, allocations: 32 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.046e-05/0.3035, allocations: 83.62 kB / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.3037, allocations: 175.1 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003996/0.3041, allocations: 413.2 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3041, allocations: 0 / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3041, allocations: 0 / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.3041, allocations: 0 / 414.2 MB, free: 12.04 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001145/0.3053, allocations: 0.666 MB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3053, allocations: 12.03 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.779e-05/0.3054, allocations: 66.72 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.387e-05/0.3055, allocations: 40.7 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.3058, allocations: 283.5 kB / 415.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.3059, allocations: 25.03 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.942e-05/0.3059, allocations: 32.31 kB / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005629/0.3065, allocations: 294.2 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3065, allocations: 0 / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.3065, allocations: 12 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.3065, allocations: 8 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005998/0.3072, allocations: 258.5 kB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.3088, allocations: 1.116 MB / 417 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003669/0.3092, allocations: 157.9 kB / 417.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.3094, allocations: 71.62 kB / 417.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.3094, allocations: 4 kB / 417.3 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3094, allocations: 34.56 kB / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.3094, allocations: 0 / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001989/0.3114, allocations: 0.5953 MB / 417.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.3115, allocations: 55.41 kB / 417.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.3118, allocations: 290.8 kB / 418.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.3118, allocations: 29.7 kB / 418.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3119, allocations: 228.1 kB / 418.5 MB, free: 7.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.514e-05/0.312, allocations: 83.31 kB / 418.6 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.341e-05/0.3121, allocations: 61.7 kB / 418.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3122, allocations: 338.8 kB / 419 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.3125, allocations: 99.92 kB / 419.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003281/0.3128, allocations: 199.9 kB / 419.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005793/0.3134, allocations: 309.1 kB / 419.5 MB, free: 6.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3134, allocations: 0 / 419.5 MB, free: 6.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008236/0.3143, allocations: 397.1 kB / 419.9 MB, free: 5.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3143, allocations: 8 kB / 419.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3143, allocations: 4 kB / 419.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/0.3146, allocations: 61.95 kB / 420 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.3149, allocations: 75.89 kB / 420.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/0.3168, allocations: 2.829 MB / 422.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002707/0.3171, allocations: 27.97 kB / 422.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.3171, allocations: 12 kB / 422.9 MB, free: 2.672 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001458/0.3172, allocations: 165.6 kB / 423.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.046e-05/0.3173, allocations: 27.81 kB / 423.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.725e-05/0.3174, allocations: 34.2 kB / 423.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3174, allocations: 4 kB / 423.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3174, allocations: 3.938 kB / 423.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.3174, allocations: 0 / 423.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003388/0.3177, allocations: 337.4 kB / 423.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3178, allocations: 0 / 423.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.318, allocations: 43.95 kB / 423.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001455/0.3181, allocations: 57.75 kB / 423.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.3181, allocations: 7.984 kB / 423.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001877/0.32, allocations: 2.83 MB / 426.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.32, allocations: 0 / 426.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006799/0.3207, allocations: 380.8 kB / 426.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.3208, allocations: 96.95 kB / 426.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/0.3208, allocations: 8 kB / 426.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.3211, allocations: 19.98 kB / 426.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.3211, allocations: 19.91 kB / 427 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3211, allocations: 8 kB / 427 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.3213, allocations: 198 kB / 427.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3213, allocations: 0 / 427.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003648/0.3217, allocations: 72 kB / 427.2 MB, free: 14 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009365/0.3226, allocations: 0.916 MB / 428.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008913/0.3236, allocations: 493.7 kB / 428.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3236, allocations: 192 / 428.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004536/0.324, allocations: 345.2 kB / 429 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.3244, allocations: 32 kB / 429 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003997/0.3284, allocations: 3.03 MB / 432 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.3287, allocations: 0.7753 MB / 432.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.3288, allocations: 30.27 kB / 432.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.329, allocations: 103.4 kB / 432.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.329, allocations: 0 / 432.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.3573, allocations: 5.771 MB / 438.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.881/10.24, allocations: 11.06 kB / 438.7 MB, free: 2.465 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches