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.001591/0.001591, allocations: 122.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.001629/0.001629, allocations: 202 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.492/1.492, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.313, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007366/0.3204, allocations: 2.846 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.323, allocations: 0.7905 MB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003715/0.3234, allocations: 4 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000395/0.3238, allocations: 71.31 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006446/0.3245, allocations: 99.17 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005495/0.3251, allocations: 107.8 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008356/0.3259, allocations: 402.5 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004196/0.3264, allocations: 126.9 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.327, allocations: 167.4 kB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004478/0.3274, allocations: 171.2 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.3275, allocations: 36 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.3277, allocations: 32 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.3278, allocations: 83.69 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002582/0.3281, allocations: 179.1 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007184/0.3288, allocations: 401.3 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3288, allocations: 3.938 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3288, allocations: 0 / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.363e-05/0.3289, allocations: 0 / 414.2 MB, free: 12.03 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.001998/0.3309, allocations: 0.6661 MB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.111e-05/0.331, allocations: 12.03 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001172/0.3311, allocations: 70.72 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.3312, allocations: 44.69 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006126/0.3319, allocations: 279.5 kB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.3319, allocations: 21.03 kB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-05/0.332, allocations: 36.31 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008759/0.3329, allocations: 298.1 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.3329, allocations: 0 / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.333, allocations: 12 kB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.333, allocations: 12 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009424/0.334, allocations: 250.5 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.3365, allocations: 1.112 MB / 417 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005349/0.337, allocations: 150.5 kB / 417.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002538/0.3373, allocations: 76.75 kB / 417.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.3374, allocations: 4 kB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.3374, allocations: 30.56 kB / 417.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.204e-06/0.3374, allocations: 4 kB / 417.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002409/0.3398, allocations: 0.5975 MB / 417.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.3399, allocations: 55.41 kB / 417.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.3402, allocations: 290.8 kB / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.3403, allocations: 29.7 kB / 418.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.3404, allocations: 228.1 kB / 418.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.024e-05/0.3405, allocations: 83.31 kB / 418.6 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.3406, allocations: 57.7 kB / 418.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.3408, allocations: 342.8 kB / 419 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.3411, allocations: 103.9 kB / 419.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.3416, allocations: 192 kB / 419.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006599/0.3422, allocations: 305.1 kB / 419.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3423, allocations: 4 kB / 419.5 MB, free: 6.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009355/0.3432, allocations: 401 kB / 419.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3432, allocations: 4 kB / 419.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.3432, allocations: 4 kB / 419.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003019/0.3436, allocations: 66.08 kB / 420 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003407/0.3439, allocations: 71.89 kB / 420.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002513/0.3464, allocations: 2.837 MB / 422.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.3467, allocations: 19.98 kB / 422.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.3468, allocations: 19.98 kB / 423 MB, free: 2.656 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.0002035/0.347, allocations: 157.7 kB / 423.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-05/0.3471, allocations: 27.81 kB / 423.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.867e-05/0.3471, allocations: 34.14 kB / 423.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3471, allocations: 4 kB / 423.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3472, allocations: 0 / 423.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3472, allocations: 0 / 423.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004273/0.3476, allocations: 341.4 kB / 423.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3476, allocations: 4 kB / 423.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.3478, allocations: 35.97 kB / 423.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001652/0.348, allocations: 53.67 kB / 423.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.348, allocations: 15.94 kB / 423.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.3503, allocations: 2.83 MB / 426.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3504, allocations: 128 / 426.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.3511, allocations: 376.7 kB / 426.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.964e-05/0.3512, allocations: 105 kB / 426.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.3513, allocations: 8 kB / 426.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.3515, allocations: 11.98 kB / 426.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.841e-05/0.3516, allocations: 19.97 kB / 427 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.3516, allocations: 4 kB / 427 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002404/0.3519, allocations: 202 kB / 427.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3519, allocations: 0 / 427.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004256/0.3523, allocations: 76 kB / 427.2 MB, free: 13.99 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.001112/0.3534, allocations: 0.9163 MB / 428.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.3545, 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.475e-06/0.3545, allocations: 0 / 428.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005405/0.355, allocations: 349.2 kB / 429 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.3554, allocations: 24.88 kB / 429 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004935/0.3603, allocations: 3.027 MB / 432 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/0.3608, allocations: 0.7753 MB / 432.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.361, allocations: 30.28 kB / 432.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.3612, allocations: 99.41 kB / 432.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3612, allocations: 4 kB / 432.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0396/0.4008, allocations: 5.777 MB / 438.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.92, allocations: 8.25 kB / 438.7 MB, free: 2.461 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.1.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