Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.001602/0.001602, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001918/0.001918, allocations: 196 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2784, allocations: 49.43 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006187/0.2847, allocations: 5.046 MB / 405.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003413/0.2881, allocations: 2.09 MB / 407.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003355/0.2885, allocations: 16 kB / 407.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.2915, allocations: 1.404 MB / 408.8 MB, free: 244 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001321/0.2928, allocations: 0.5748 MB / 409.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.2947, allocations: 1.051 MB / 410.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008004/0.2956, allocations: 0.7433 MB / 411.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008394/0.2964, allocations: 0.6534 MB / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/0.2968, allocations: 330.8 kB / 412.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.2972, allocations: 430.3 kB / 412.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/0.2973, allocations: 68 kB / 412.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000707/0.298, allocations: 395.6 kB / 413 MB, free: 12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.2981, allocations: 159.4 kB / 413.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.2984, allocations: 378.1 kB / 413.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.2997, allocations: 1.198 MB / 414.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2997, allocations: 0 / 414.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2997, allocations: 0 / 414.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.2997, allocations: 4 kB / 414.7 MB, free: 10.27 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.004101/0.3038, allocations: 1.469 MB / 416.2 MB, free: 8.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3039, allocations: 8.031 kB / 416.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.304, allocations: 131.4 kB / 416.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002558/0.3066, allocations: 376.1 kB / 416.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.3068, allocations: 268.7 kB / 417 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.795e-05/0.3069, allocations: 66.38 kB / 417 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.307, allocations: 80.38 kB / 417.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.3086, allocations: 0.8837 MB / 418 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.3086, allocations: 0 / 418 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.493e-05/0.3087, allocations: 36 kB / 418 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.3088, allocations: 20 kB / 418.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.3105, allocations: 0.8003 MB / 418.9 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.3144, allocations: 2.946 MB / 421.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.3156, allocations: 1.011 MB / 422.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/0.3162, allocations: 246.4 kB / 423.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.451e-05/0.3163, allocations: 89.67 kB / 423.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.3163, allocations: 39.12 kB / 423.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 1.924e-06/0.3163, allocations: 0 / 423.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.007848/0.3242, allocations: 2.432 MB / 425.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.3242, allocations: 85.67 kB / 425.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.3246, allocations: 303.2 kB / 426 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.3246, allocations: 33.7 kB / 426 MB, free: 14.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.3248, allocations: 371.9 kB / 426.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.325, allocations: 222.1 kB / 426.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.3252, allocations: 154.5 kB / 426.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3253, allocations: 350.7 kB / 427.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007887/0.3261, allocations: 273.8 kB / 427.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009325/0.327, allocations: 0.5042 MB / 427.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001791/0.3288, allocations: 0.8076 MB / 428.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3289, allocations: 0 / 428.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002153/0.331, allocations: 0.9022 MB / 429.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.3311, allocations: 8.594 kB / 429.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.3311, allocations: 15.88 kB / 429.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/0.3313, allocations: 65.67 kB / 429.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008571/0.3322, allocations: 207.7 kB / 429.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.3342, allocations: 2.884 MB / 432.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006611/0.3349, allocations: 67.95 kB / 432.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-05/0.335, allocations: 39.98 kB / 432.9 MB, free: 7.039 MB / 350.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.0002764/0.3352, allocations: 209.6 kB / 433.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-05/0.3353, allocations: 43.7 kB / 433.1 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.3373, allocations: 0.7428 MB / 433.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.3373, allocations: 12 kB / 433.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3373, allocations: 0 / 433.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.3373, allocations: 7.969 kB / 433.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.34, allocations: 1.417 MB / 435.3 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.34, allocations: 4 kB / 435.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006785/0.3407, allocations: 143.8 kB / 435.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.3409, allocations: 53.67 kB / 435.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.106e-05/0.3409, allocations: 15.98 kB / 435.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001982/0.3429, allocations: 2.849 MB / 438.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3429, allocations: 4.031 kB / 438.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002532/0.3455, allocations: 1.091 MB / 439.4 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.3457, allocations: 172.8 kB / 439.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.3458, allocations: 8 kB / 439.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/0.3463, allocations: 51.94 kB / 439.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3464, allocations: 44.5 kB / 439.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.3465, allocations: 19.98 kB / 439.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002098/0.3467, allocations: 203.1 kB / 439.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3467, allocations: 8 kB / 439.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007356/0.3474, allocations: 172 kB / 440.1 MB, free: 15.37 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.002921/0.3504, allocations: 1.698 MB / 441.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002055/0.3524, allocations: 0.9124 MB / 442.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3524, allocations: 0 / 442.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.3535, allocations: 0.5512 MB / 443.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.354, allocations: 53.45 kB / 443.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00865/0.3626, allocations: 5.144 MB / 448.5 MB, free: 6.645 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.3631, allocations: 0.8886 MB / 449.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004062/0.3635, allocations: 92.52 kB / 449.4 MB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.3639, allocations: 231.3 kB / 449.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3639, allocations: 4 kB / 449.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03684/0.4007, allocations: 11.17 MB / 460.8 MB, free: 10.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.68, allocations: 8.188 kB / 460.9 MB, free: 10.44 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_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_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches