Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",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.001246/0.001246, allocations: 113.4 kB / 17.05 MB, free: 6.086 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.001324/0.001324, allocations: 192 kB / 17.99 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009883/0.0009884, allocations: 47.88 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2881, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02829/0.3165, allocations: 28.61 MB / 428.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01687/0.3334, allocations: 7.117 MB / 436 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007152/0.3405, allocations: 263.2 kB / 436.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0287/0.3693, allocations: 13.15 MB / 449.4 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01138/0.3807, allocations: 2.718 MB / 452.1 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006552/0.3873, allocations: 1.843 MB / 453.9 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02294/0.4102, allocations: 18.11 MB / 472 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08176/0.492, allocations: 44.45 MB / 0.5044 GB, free: 4.078 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01702/0.5091, allocations: 9.956 MB / 0.5141 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01788/0.527, allocations: 11.06 MB / 0.5249 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008497/0.5356, allocations: 2.918 MB / 0.5278 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01161/0.5472, allocations: 3.168 MB / 0.5308 GB, free: 8.934 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01099/0.5582, allocations: 5.48 MB / 0.5362 GB, free: 3.441 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.5199/1.078, allocations: 10.82 MB / 0.5468 GB, free: 59.62 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05802/1.136, allocations: 39.07 MB / 0.5849 GB, free: 44.83 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/1.136, allocations: 3.531 kB / 0.5849 GB, free: 44.83 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.294e-06/1.136, allocations: 0.8125 kB / 0.5849 GB, free: 44.83 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001182/1.138, allocations: 0 / 0.5849 GB, free: 44.83 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.07793/1.215, allocations: 22.31 MB / 0.6067 GB, free: 31.05 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.216, allocations: 11.77 kB / 0.6067 GB, free: 31.05 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01263/1.228, allocations: 2.967 MB / 0.6096 GB, free: 29.23 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0439/1.272, allocations: 8.407 MB / 0.6178 GB, free: 21.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02585/1.298, allocations: 11.66 MB / 0.6292 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001172/1.299, allocations: 1.342 MB / 0.6305 GB, free: 8.734 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007156/1.306, allocations: 1.752 MB / 0.6322 GB, free: 6.992 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07915/1.386, allocations: 28.73 MB / 0.6603 GB, free: 10.22 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008806/1.387, allocations: 15.91 kB / 0.6603 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006629/1.393, allocations: 0.728 MB / 0.661 GB, free: 9.484 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000939/1.394, allocations: 0.849 MB / 0.6618 GB, free: 8.637 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05644/1.451, allocations: 24.79 MB / 0.6861 GB, free: 15.83 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4125/1.863, allocations: 87.11 MB / 0.7711 GB, free: 151.9 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02296/1.886, allocations: 35.12 MB / 0.8054 GB, free: 124.4 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007613/1.894, allocations: 5.436 MB / 0.8107 GB, free: 124.3 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004484/1.894, allocations: 207.7 kB / 0.8109 GB, free: 124.2 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/1.894, allocations: 92.89 kB / 0.811 GB, free: 124.2 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.284e-06/1.894, allocations: 0 / 0.811 GB, free: 124.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03072/1.925, allocations: 14.76 MB / 0.8254 GB, free: 123.3 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/1.925, allocations: 145.4 kB / 0.8256 GB, free: 123.2 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009789/1.935, allocations: 6.431 MB / 0.8319 GB, free: 122.8 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009609/1.936, allocations: 123.3 kB / 0.832 GB, free: 122.8 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004126/1.94, allocations: 7.902 MB / 0.8397 GB, free: 116.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002134/1.942, allocations: 2.106 MB / 0.8417 GB, free: 115.1 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003237/1.946, allocations: 2.099 MB / 0.8438 GB, free: 113.9 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.419e-05/1.946, allocations: 305.1 kB / 0.8441 GB, free: 113.6 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006459/1.952, allocations: 4.738 MB / 0.8487 GB, free: 111.1 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009466/1.962, allocations: 9.462 MB / 0.858 GB, free: 102.1 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/1.977, allocations: 15.3 MB / 0.8729 GB, free: 85.68 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001556/1.977, allocations: 44 kB / 0.8729 GB, free: 85.63 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02575/2.003, allocations: 15.4 MB / 0.888 GB, free: 70.14 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 9.76e-05/2.003, allocations: 79.97 kB / 0.8881 GB, free: 70.07 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000189/2.003, allocations: 164 kB / 0.8882 GB, free: 69.91 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004754/2.008, allocations: 1.657 MB / 0.8898 GB, free: 68.25 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007732/2.016, allocations: 2.351 MB / 0.8921 GB, free: 65.89 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/2.028, allocations: 11.61 MB / 0.9035 GB, free: 54.14 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007821/2.036, allocations: 1.378 MB / 0.9048 GB, free: 52.76 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001761/2.038, allocations: 0.5286 MB / 0.9053 GB, free: 52.23 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1243): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01483/2.053, allocations: 7.141 MB / 0.9123 GB, free: 45.07 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001477/2.054, allocations: 0.652 MB / 0.9129 GB, free: 44.41 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01367/2.068, allocations: 10.1 MB / 0.9228 GB, free: 34.2 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009468/2.078, allocations: 7.762 MB / 0.9304 GB, free: 26.36 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.321e-05/2.078, allocations: 15.98 kB / 0.9304 GB, free: 26.34 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.106e-05/2.078, allocations: 31.83 kB / 0.9304 GB, free: 26.31 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05552/2.133, allocations: 25.45 MB / 0.9553 GB, free: 0.6719 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.7e-05/2.133, allocations: 8 kB / 0.9553 GB, free: 0.6641 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007858/2.141, allocations: 1.011 MB / 0.9563 GB, free: 15.65 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009294/2.151, allocations: 1.465 MB / 0.9577 GB, free: 14.18 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001233/2.152, allocations: 124 kB / 0.9578 GB, free: 14.06 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02089/2.173, allocations: 11.17 MB / 0.9687 GB, free: 2.773 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.299e-05/2.173, allocations: 15.88 kB / 0.9687 GB, free: 2.758 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2662/2.439, allocations: 14.12 MB / 0.9825 GB, free: 186.2 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004058/2.443, allocations: 1.478 MB / 0.984 GB, free: 185.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00198/2.445, allocations: 111.1 kB / 0.9841 GB, free: 185.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004214/2.449, allocations: 323.8 kB / 0.9844 GB, free: 185.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0012/2.451, allocations: 400.4 kB / 0.9848 GB, free: 185.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004373/2.451, allocations: 162.5 kB / 0.9849 GB, free: 185.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00822/2.459, allocations: 4.313 MB / 0.9891 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4e-07/2.459, allocations: 0 / 0.9891 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01161/2.471, allocations: 4.093 MB / 0.9931 GB, free: 184 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 1 (source.plug_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 (528): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0184/2.489, allocations: 14.93 MB / 1.008 GB, free: 177 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01599/2.505, allocations: 11.37 MB / 1.019 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/2.505, allocations: 3.906 kB / 1.019 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006645/2.512, allocations: 4.647 MB / 1.023 GB, free: 170.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008685/2.521, allocations: 1.56 MB / 1.025 GB, free: 169.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1438/2.665, allocations: 94.62 MB / 1.117 GB, free: 74.02 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01863/2.683, allocations: 11.26 MB / 1.128 GB, free: 62.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.008611/2.692, allocations: 3.762 MB / 1.132 GB, free: 58.93 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01027/2.702, allocations: 5.916 MB / 1.138 GB, free: 53.02 MB / 0.5763 GB Notification: Performance of SimCode: time 3.557e-06/2.702, allocations: 0 / 1.138 GB, free: 53.02 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4901/3.192, allocations: 206.5 MB / 1.339 GB, free: 76.74 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.89/29.08, allocations: 22.38 kB / 1.339 GB, free: 76.72 MB / 0.5763 GB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches