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.0012/0.0012, allocations: 105.9 kB / 17.06 MB, free: 6.004 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.001209/0.001209, allocations: 191 kB / 18 MB, free: 5.09 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 48.06 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2719, allocations: 49.43 MB / 400.2 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004486/0.2764, allocations: 2.804 MB / 403 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.278, allocations: 0.7477 MB / 403.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002989/0.2783, allocations: 4 kB / 403.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.2786, allocations: 63.44 kB / 403.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004428/0.2791, allocations: 99.17 kB / 403.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003647/0.2795, allocations: 107.8 kB / 404.1 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.28, allocations: 386.6 kB / 404.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003105/0.2804, allocations: 126.9 kB / 404.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000338/0.2807, allocations: 159.4 kB / 404.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000275/0.281, allocations: 171.2 kB / 404.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.885e-05/0.2811, allocations: 32 kB / 404.9 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.523e-05/0.2811, allocations: 36 kB / 404.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.049e-05/0.2812, allocations: 75.7 kB / 405 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.2814, allocations: 171.1 kB / 405.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004804/0.2819, allocations: 405.3 kB / 405.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2819, allocations: 0 / 405.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2819, allocations: 0 / 405.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.2819, allocations: 0 / 405.6 MB, free: 3.582 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.001308/0.2833, allocations: 0.6429 MB / 406.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.2833, allocations: 12.03 kB / 406.2 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.185e-05/0.2834, allocations: 66.72 kB / 406.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.698e-05/0.2835, allocations: 36.7 kB / 406.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000436/0.2839, allocations: 273 kB / 406.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.236e-05/0.284, allocations: 25.03 kB / 406.6 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.2841, allocations: 28.38 kB / 406.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006221/0.2847, allocations: 298.1 kB / 406.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.2847, allocations: 3.984 kB / 406.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.2847, allocations: 12 kB / 407 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.2848, allocations: 8 kB / 407 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006082/0.2854, allocations: 246.5 kB / 407.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.2871, allocations: 1.12 MB / 408.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.2875, allocations: 150.5 kB / 408.5 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.2877, allocations: 76.72 kB / 408.6 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.2878, allocations: 3.938 kB / 408.6 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.2878, allocations: 34.56 kB / 408.6 MB, free: 356 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.2878, allocations: 0 / 408.6 MB, free: 356 kB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.002101/0.2899, allocations: 0.5957 MB / 409.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.29, allocations: 55.41 kB / 409.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.2903, allocations: 266.5 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.2903, allocations: 25.7 kB / 409.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.2905, allocations: 228.1 kB / 409.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.17e-05/0.2905, allocations: 87.27 kB / 409.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.2907, allocations: 61.66 kB / 409.9 MB, free: 15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.2908, allocations: 338.8 kB / 410.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/0.2911, allocations: 95.92 kB / 410.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003534/0.2915, allocations: 195.9 kB / 410.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006262/0.2921, allocations: 301.8 kB / 410.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2921, allocations: 0 / 410.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008628/0.293, allocations: 397.5 kB / 411.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.293, allocations: 4 kB / 411.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.293, allocations: 4 kB / 411.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002536/0.2933, allocations: 57.67 kB / 411.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.2936, allocations: 75.89 kB / 411.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00207/0.2957, allocations: 2.841 MB / 414.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.296, allocations: 32.09 kB / 414.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.2961, allocations: 15.98 kB / 414.2 MB, free: 10.28 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.0001608/0.2962, allocations: 157.7 kB / 414.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.843e-05/0.2963, allocations: 23.81 kB / 414.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.154e-05/0.2964, allocations: 30.17 kB / 414.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.2964, allocations: 4 kB / 414.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2964, allocations: 4 kB / 414.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2964, allocations: 3.938 kB / 414.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003387/0.2967, allocations: 329.4 kB / 414.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2967, allocations: 0 / 414.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.2969, allocations: 43.95 kB / 414.8 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001595/0.2971, allocations: 53.69 kB / 414.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.2971, allocations: 0 / 414.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.2991, allocations: 2.837 MB / 417.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2992, allocations: 0 / 417.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007326/0.2999, allocations: 378.7 kB / 418.1 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.481e-05/0.3, allocations: 100.9 kB / 418.2 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.3, allocations: 8 kB / 418.2 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.3003, allocations: 15.98 kB / 418.2 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.638e-05/0.3003, allocations: 19.97 kB / 418.2 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.3003, allocations: 7.938 kB / 418.2 MB, free: 5.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001954/0.3005, allocations: 189.9 kB / 418.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3006, allocations: 0 / 418.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000407/0.301, allocations: 72 kB / 418.5 MB, free: 5.648 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.00105/0.302, allocations: 0.9087 MB / 419.4 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3031, allocations: 497 kB / 419.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3031, allocations: 0 / 419.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004917/0.3036, allocations: 337.2 kB / 420.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.304, allocations: 33.3 kB / 420.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004159/0.3081, allocations: 2.936 MB / 423.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.3085, allocations: 0.7676 MB / 423.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.3087, allocations: 34.41 kB / 424 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.3088, allocations: 99.41 kB / 424.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3088, allocations: 0 / 424.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.3375, allocations: 5.559 MB / 429.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.806/10.14, allocations: 7.812 kB / 429.6 MB, free: 10.38 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