Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.001463/0.001463, allocations: 106.8 kB / 17.05 MB, free: 6.09 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.001471/0.001471, allocations: 192 kB / 18 MB, free: 5.184 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002009/0.00201, allocations: 43.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3266, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005453/0.3321, allocations: 2.802 MB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.3338, allocations: 0.7399 MB / 403.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.334, allocations: 8 kB / 403.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002431/0.3343, allocations: 59.44 kB / 403.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002874/0.3346, allocations: 99.19 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.3349, allocations: 107.7 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.3353, allocations: 386.5 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.3356, allocations: 130.9 kB / 404.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.3358, allocations: 159.4 kB / 404.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.3361, allocations: 167.3 kB / 404.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.065e-05/0.3361, allocations: 35.98 kB / 404.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.524e-05/0.3362, allocations: 32 kB / 404.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.907e-05/0.3363, allocations: 75.64 kB / 405 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.3365, allocations: 175.1 kB / 405.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004971/0.337, allocations: 393.4 kB / 405.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.337, allocations: 0 / 405.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.337, allocations: 0 / 405.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.337, allocations: 0 / 405.6 MB, free: 3.488 MB / 318.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.001238/0.3382, allocations: 0.6467 MB / 406.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3383, allocations: 15.97 kB / 406.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.861e-05/0.3384, allocations: 62.73 kB / 406.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.258e-05/0.3385, allocations: 44.69 kB / 406.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.3389, allocations: 276.9 kB / 406.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.339, allocations: 21.03 kB / 406.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.339, allocations: 32.38 kB / 406.6 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000628/0.3397, allocations: 294.1 kB / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3397, allocations: 0 / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.3397, allocations: 16 kB / 407 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.3398, allocations: 11.98 kB / 407 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006225/0.3404, allocations: 246.5 kB / 407.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.3422, allocations: 1.116 MB / 408.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003998/0.3426, allocations: 158.5 kB / 408.5 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.3428, allocations: 71.38 kB / 408.5 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.3429, allocations: 4 kB / 408.5 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.3429, allocations: 34.56 kB / 408.6 MB, free: 248 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.452e-06/0.3429, allocations: 0 / 408.6 MB, free: 248 kB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.002183/0.3451, allocations: 0.5879 MB / 409.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.3452, allocations: 55.41 kB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.3455, allocations: 262.5 kB / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.3455, allocations: 33.7 kB / 409.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.3457, allocations: 228.1 kB / 409.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.527e-05/0.3458, allocations: 87.27 kB / 409.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.3459, allocations: 65.64 kB / 409.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.3461, allocations: 334.8 kB / 410.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002869/0.3464, allocations: 91.94 kB / 410.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.3467, allocations: 196 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006462/0.3474, allocations: 297.8 kB / 410.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.3474, allocations: 4 kB / 410.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008928/0.3483, allocations: 397.4 kB / 411.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.3484, allocations: 10.34 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3484, allocations: 4 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/0.3487, allocations: 57.61 kB / 411.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/0.349, allocations: 79.89 kB / 411.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.3515, allocations: 2.833 MB / 414.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/0.3518, allocations: 28.09 kB / 414.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.3519, allocations: 16 kB / 414.2 MB, free: 10.18 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.0002124/0.3521, allocations: 153.8 kB / 414.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.3521, allocations: 27.81 kB / 414.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.766e-05/0.3522, allocations: 34.16 kB / 414.4 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.3522, allocations: 8 kB / 414.4 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3522, allocations: 4 kB / 414.4 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3523, allocations: 3.938 kB / 414.4 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004171/0.3527, allocations: 333.4 kB / 414.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3527, allocations: 0 / 414.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.3529, allocations: 35.97 kB / 414.8 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001759/0.3531, allocations: 57.67 kB / 414.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.3531, allocations: 8 kB / 414.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002308/0.3555, allocations: 2.825 MB / 417.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3555, allocations: 0 / 417.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000804/0.3563, allocations: 380.4 kB / 418 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.3564, allocations: 104.9 kB / 418.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.3564, allocations: 4 kB / 418.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.3567, allocations: 11.98 kB / 418.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.533e-05/0.3567, allocations: 19.97 kB / 418.2 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.3568, allocations: 12 kB / 418.2 MB, free: 5.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.357, allocations: 186 kB / 418.4 MB, free: 5.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.338e-06/0.357, allocations: 0 / 418.4 MB, free: 5.621 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004542/0.3575, allocations: 75.94 kB / 418.5 MB, free: 5.547 MB / 334.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.001178/0.3587, allocations: 0.9134 MB / 419.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.3598, allocations: 488 kB / 419.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3598, allocations: 0 / 419.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005374/0.3603, allocations: 341.2 kB / 420.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.3607, allocations: 29.3 kB / 420.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004821/0.3656, allocations: 2.94 MB / 423.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.3661, allocations: 0.7676 MB / 423.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001459/0.3663, allocations: 38.36 kB / 423.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3664, allocations: 95.41 kB / 424 MB, free: 15.66 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3664, allocations: 0 / 424 MB, free: 15.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03499/0.4014, allocations: 5.567 MB / 429.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.62, allocations: 6.5 kB / 429.6 MB, free: 10.27 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.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_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches