Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 102.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002245/0.002245, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.164/2.164, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 47.52 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1791, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.01138/0.1905, allocations: 5.072 MB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006002/0.1966, allocations: 2.09 MB / 357.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009581/0.1976, allocations: 20 kB / 357.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004866/0.2025, allocations: 1.407 MB / 358.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002727/0.2052, allocations: 0.5671 MB / 359.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003461/0.2087, allocations: 1.054 MB / 360.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001907/0.2106, allocations: 0.7395 MB / 361.1 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001895/0.2125, allocations: 0.6614 MB / 361.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.2138, allocations: 342.8 kB / 362.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.2149, allocations: 430.3 kB / 362.5 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002987/0.2152, allocations: 71.94 kB / 362.6 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001716/0.2169, allocations: 391.6 kB / 363 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003318/0.2173, allocations: 171.4 kB / 363.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009338/0.2182, allocations: 378.1 kB / 363.5 MB, free: 6.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002925/0.2212, allocations: 1.192 MB / 364.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2212, allocations: 0 / 364.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2212, allocations: 0 / 364.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.242e-05/0.2212, allocations: 0 / 364.7 MB, free: 5.688 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.007917/0.2292, allocations: 1.451 MB / 366.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.489e-05/0.2293, allocations: 15.89 kB / 366.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004683/0.2298, allocations: 139.3 kB / 366.3 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00427/0.2341, allocations: 383.6 kB / 366.7 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005262/0.2346, allocations: 255.9 kB / 366.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.2348, allocations: 62.38 kB / 367 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002868/0.2351, allocations: 80.38 kB / 367.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003098/0.2382, allocations: 0.8835 MB / 368 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.913e-05/0.2383, allocations: 3.906 kB / 368 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.2385, allocations: 36 kB / 368 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.493e-05/0.2385, allocations: 23.94 kB / 368 MB, free: 2.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/0.2415, allocations: 0.8003 MB / 368.8 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3265/0.5681, allocations: 2.957 MB / 371.8 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.5703, allocations: 1.006 MB / 372.8 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009613/0.5713, allocations: 242 kB / 373 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001376/0.5715, allocations: 96.66 kB / 373.1 MB, free: 22.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.5715, allocations: 39.19 kB / 373.2 MB, free: 22.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 5.28e-06/0.5715, allocations: 3.797 kB / 373.2 MB, free: 22.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01366/0.5852, allocations: 2.42 MB / 375.6 MB, free: 21.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.5853, allocations: 85.41 kB / 375.7 MB, free: 21.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006671/0.586, allocations: 319.4 kB / 376 MB, free: 21.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.286e-05/0.5861, allocations: 35.17 kB / 376 MB, free: 21.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003234/0.5864, allocations: 363.2 kB / 376.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.5867, allocations: 214.9 kB / 376.6 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003757/0.5871, allocations: 148.7 kB / 376.7 MB, free: 21.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5872, allocations: 346.1 kB / 377.1 MB, free: 20.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.5887, allocations: 277.2 kB / 377.3 MB, free: 20.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.5904, allocations: 0.5073 MB / 377.8 MB, free: 20.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003124/0.5936, allocations: 0.8145 MB / 378.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.5936, allocations: 6.375 kB / 378.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004235/0.5979, allocations: 0.9092 MB / 379.6 MB, free: 19.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.219e-05/0.5979, allocations: 8.328 kB / 379.6 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.598, allocations: 7.844 kB / 379.6 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004713/0.5985, allocations: 70.73 kB / 379.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.6, allocations: 206.4 kB / 379.9 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002705/0.6028, allocations: 2.875 MB / 382.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001299/0.6041, allocations: 63.31 kB / 382.8 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.6042, allocations: 35.34 kB / 382.8 MB, free: 16.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0006265/0.6049, allocations: 219.6 kB / 383 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.6051, allocations: 39.94 kB / 383.1 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.6089, allocations: 0.7522 MB / 383.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/0.6089, allocations: 6.406 kB / 383.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.609, allocations: 5.062 kB / 383.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.609, allocations: 4.297 kB / 383.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005494/0.6145, allocations: 1.435 MB / 385.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.6146, allocations: 0 / 385.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/0.6158, allocations: 133.2 kB / 385.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003517/0.6162, allocations: 59.55 kB / 385.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.301e-05/0.6163, allocations: 16.77 kB / 385.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.6188, allocations: 2.851 MB / 388.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6188, allocations: 0 / 388.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004824/0.6236, allocations: 1.095 MB / 389.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004591/0.6241, allocations: 160.2 kB / 389.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.6243, allocations: 15.19 kB / 389.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009834/0.6253, allocations: 46.69 kB / 389.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.6256, allocations: 48.33 kB / 389.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/0.6257, allocations: 19.73 kB / 389.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000474/0.6262, allocations: 225.3 kB / 389.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.926e-06/0.6262, allocations: 0 / 389.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001682/0.6279, allocations: 178 kB / 390.1 MB, free: 11.51 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_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 (58): * Single equations (assignments): 56 * 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.005402/0.6333, allocations: 1.695 MB / 391.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00451/0.6378, allocations: 0.9404 MB / 392.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.6379, allocations: 4.062 kB / 392.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.6397, allocations: 0.5469 MB / 393.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009498/0.6407, allocations: 45.42 kB / 393.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.6584, allocations: 5.253 MB / 398.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007262/0.6591, allocations: 0.8876 MB / 399.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0009533/0.6601, allocations: 93.27 kB / 399.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004993/0.6606, allocations: 221.4 kB / 399.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6607, allocations: 0 / 399.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06376/0.7244, allocations: 11.17 MB / 411 MB, free: 11.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.25/15.97, allocations: 8.719 kB / 411 MB, free: 11.8 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches