Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001248/0.001248, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2763, allocations: 50.53 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006363/0.2827, allocations: 5.085 MB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003797/0.2865, allocations: 2.148 MB / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002793/0.2868, allocations: 16 kB / 416 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003028/0.2899, allocations: 1.411 MB / 417.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001161/0.2911, allocations: 425.3 kB / 417.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.2933, allocations: 1.198 MB / 419 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008712/0.2941, allocations: 0.7472 MB / 419.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008764/0.295, allocations: 0.6573 MB / 420.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003708/0.2954, allocations: 326.8 kB / 420.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004119/0.2958, allocations: 438.3 kB / 421.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.651e-05/0.2959, allocations: 68 kB / 421.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007695/0.2967, allocations: 427.6 kB / 421.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.2969, allocations: 155.5 kB / 421.8 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003048/0.2972, allocations: 382.1 kB / 422.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.2984, allocations: 1.221 MB / 423.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2984, allocations: 3.984 kB / 423.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2984, allocations: 0 / 423.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.2985, allocations: 0 / 423.4 MB, free: 2.82 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004212/0.3027, allocations: 1.485 MB / 424.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3027, allocations: 8.031 kB / 424.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.3029, allocations: 135.4 kB / 425.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002533/0.3054, allocations: 384.1 kB / 425.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002279/0.3057, allocations: 263.4 kB / 425.7 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.429e-05/0.3057, allocations: 66.38 kB / 425.7 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.3059, allocations: 84.12 kB / 425.8 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.3074, allocations: 0.8718 MB / 426.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/0.3075, allocations: 7.953 kB / 426.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.523e-05/0.3076, allocations: 32 kB / 426.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/0.3076, allocations: 20 kB / 426.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.3093, allocations: 0.8042 MB / 427.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004018/0.3133, allocations: 3.022 MB / 430.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.3145, allocations: 1 MB / 431.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004903/0.315, allocations: 238.4 kB / 431.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.3151, allocations: 186.7 kB / 432 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.3152, allocations: 43.12 kB / 432 MB, free: 9.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.923e-06/0.3152, allocations: 0 / 432 MB, free: 9.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007036/0.3222, allocations: 2.397 MB / 434.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3223, allocations: 89.67 kB / 434.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.3226, allocations: 320.3 kB / 434.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.3227, allocations: 33.7 kB / 434.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.3229, allocations: 379.9 kB / 435.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.323, allocations: 218.1 kB / 435.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.3232, allocations: 138.6 kB / 435.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.3234, allocations: 354.7 kB / 435.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007154/0.3241, allocations: 273.8 kB / 436.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000882/0.325, allocations: 0.5081 MB / 436.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.3266, allocations: 0.8076 MB / 437.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3266, allocations: 4 kB / 437.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001972/0.3286, allocations: 0.9024 MB / 438.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.3286, allocations: 11.94 kB / 438.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.3286, allocations: 12 kB / 438.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.3289, allocations: 74.02 kB / 438.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008262/0.3297, allocations: 195.7 kB / 438.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.3316, allocations: 2.868 MB / 441.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006414/0.3323, allocations: 67.97 kB / 441.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/0.3324, allocations: 39.92 kB / 441.7 MB, free: 15.41 MB / 366.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.0002859/0.3327, allocations: 217.5 kB / 441.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.389e-05/0.3328, allocations: 43.7 kB / 441.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.3346, allocations: 0.7275 MB / 442.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3346, allocations: 8 kB / 442.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3346, allocations: 0 / 442.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3346, allocations: 11.92 kB / 442.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002569/0.3372, allocations: 1.421 MB / 444.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3372, allocations: 3.984 kB / 444.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/0.3379, allocations: 127.8 kB / 444.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.3381, allocations: 57.67 kB / 444.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/0.3381, allocations: 15.98 kB / 444.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001794/0.3399, allocations: 2.853 MB / 447.2 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3399, allocations: 3.938 kB / 447.2 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.3423, allocations: 1.079 MB / 448.3 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002356/0.3426, allocations: 164.8 kB / 448.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.3427, allocations: 16.06 kB / 448.4 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005065/0.3432, allocations: 43.95 kB / 448.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.3433, allocations: 48.62 kB / 448.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.3434, allocations: 16 kB / 448.5 MB, free: 8.152 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002321/0.3436, allocations: 223 kB / 448.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3436, allocations: 0 / 448.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007519/0.3444, allocations: 184 kB / 448.9 MB, free: 7.754 MB / 366.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.002941/0.3473, allocations: 1.689 MB / 450.6 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002036/0.3494, allocations: 0.9046 MB / 451.5 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3494, allocations: 4 kB / 451.5 MB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009874/0.3504, allocations: 0.5473 MB / 452.1 MB, free: 4.531 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004531/0.3508, allocations: 61.02 kB / 452.1 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009146/0.36, allocations: 5.209 MB / 457.3 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.3605, allocations: 0.881 MB / 458.2 MB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004137/0.361, allocations: 84.53 kB / 458.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.3613, allocations: 219.3 kB / 458.5 MB, free: 13.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3613, allocations: 4 kB / 458.5 MB, free: 13.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03752/0.3989, allocations: 11.33 MB / 469.9 MB, free: 2.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.68, allocations: 20.38 kB / 469.9 MB, free: 2.641 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches