Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001285/0.001285, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2929, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.0329/0.3258, allocations: 28.62 MB / 437.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0174/0.3433, allocations: 7.183 MB / 444.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007158/0.3505, allocations: 263.2 kB / 444.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03047/0.381, allocations: 13.1 MB / 457.9 MB, free: 176 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01163/0.3927, allocations: 2.535 MB / 460.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007683/0.4004, allocations: 2.025 MB / 462.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02618/0.4266, allocations: 18.28 MB / 480.8 MB, free: 9.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08008/0.5067, allocations: 44.45 MB / 0.5129 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01856/0.5253, allocations: 9.925 MB / 0.5226 GB, free: 2.648 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02031/0.5457, allocations: 11.06 MB / 0.5334 GB, free: 7.551 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009068/0.5548, allocations: 2.922 MB / 0.5363 GB, free: 4.629 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01159/0.5664, allocations: 3.199 MB / 0.5394 GB, free: 1.43 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4919/1.058, allocations: 5.473 MB / 0.5447 GB, free: 59.62 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02286/1.081, allocations: 10.82 MB / 0.5553 GB, free: 58.75 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03715/1.118, allocations: 39.1 MB / 0.5935 GB, free: 38.29 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.119, allocations: 0 / 0.5935 GB, free: 38.29 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.884e-06/1.119, allocations: 0.7812 kB / 0.5935 GB, free: 38.29 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001144/1.12, allocations: 0.75 kB / 0.5935 GB, free: 38.29 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.0712/1.191, allocations: 22.32 MB / 0.6153 GB, free: 24.35 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.462e-05/1.191, allocations: 12.55 kB / 0.6153 GB, free: 24.35 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01643/1.207, allocations: 2.96 MB / 0.6182 GB, free: 21.74 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06881/1.276, allocations: 8.448 MB / 0.6264 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0235/1.3, allocations: 11.66 MB / 0.6378 GB, free: 2.129 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001142/1.301, allocations: 1.34 MB / 0.6391 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006924/1.308, allocations: 1.757 MB / 0.6408 GB, free: 15.05 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0785/1.387, allocations: 28.73 MB / 0.6689 GB, free: 2.289 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007151/1.387, allocations: 19.91 kB / 0.6689 GB, free: 2.27 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005344/1.393, allocations: 0.7342 MB / 0.6696 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001054/1.394, allocations: 0.8442 MB / 0.6704 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05816/1.452, allocations: 24.79 MB / 0.6947 GB, free: 7.891 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4196/1.872, allocations: 87.51 MB / 0.7801 GB, free: 105.4 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02135/1.893, allocations: 35.13 MB / 0.8144 GB, free: 77.92 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00706/1.9, allocations: 5.437 MB / 0.8197 GB, free: 77.83 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004292/1.9, allocations: 281 kB / 0.82 GB, free: 77.63 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.764e-05/1.901, allocations: 105.5 kB / 0.8201 GB, free: 77.58 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.814e-06/1.901, allocations: 0 / 0.8201 GB, free: 77.58 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.02845/1.929, allocations: 14.76 MB / 0.8345 GB, free: 76.78 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/1.929, allocations: 140 kB / 0.8346 GB, free: 76.68 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009487/1.939, allocations: 6.43 MB / 0.8409 GB, free: 75.27 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001001/1.94, allocations: 117.7 kB / 0.841 GB, free: 75.23 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003725/1.943, allocations: 7.898 MB / 0.8488 GB, free: 69.69 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002098/1.946, allocations: 2.11 MB / 0.8508 GB, free: 68.17 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002814/1.948, allocations: 2.102 MB / 0.8529 GB, free: 67.82 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.409e-05/1.948, allocations: 305.1 kB / 0.8532 GB, free: 67.52 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006291/1.955, allocations: 4.738 MB / 0.8578 GB, free: 66.02 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008294/1.963, allocations: 9.464 MB / 0.867 GB, free: 54.62 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/1.978, allocations: 15.3 MB / 0.882 GB, free: 37.68 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001411/1.978, allocations: 51.19 kB / 0.882 GB, free: 37.63 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.0232/2.001, allocations: 15.4 MB / 0.8971 GB, free: 23.13 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001848/2.001, allocations: 76 kB / 0.8971 GB, free: 23.05 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002392/2.002, allocations: 160 kB / 0.8973 GB, free: 22.9 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00533/2.007, allocations: 1.653 MB / 0.8989 GB, free: 21.24 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007759/2.015, allocations: 2.356 MB / 0.9012 GB, free: 19.06 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/2.028, allocations: 11.63 MB / 0.9126 GB, free: 7.395 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00777/2.036, allocations: 1.374 MB / 0.9139 GB, free: 6.012 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001885/2.038, allocations: 0.5273 MB / 0.9144 GB, free: 5.484 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.01239/2.05, allocations: 7.153 MB / 0.9214 GB, free: 14.5 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001843/2.052, allocations: 0.6403 MB / 0.922 GB, free: 13.85 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02026/2.073, allocations: 10.1 MB / 0.9319 GB, free: 3.684 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01427/2.087, allocations: 7.762 MB / 0.9395 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.949e-05/2.087, allocations: 14.41 kB / 0.9395 GB, free: 11.86 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.903e-05/2.087, allocations: 35.81 kB / 0.9395 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05726/2.144, allocations: 25.69 MB / 0.9646 GB, free: 2.051 MB / 0.6076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.89e-05/2.144, allocations: 16.02 kB / 0.9646 GB, free: 2.035 MB / 0.6076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004131/2.149, allocations: 1.005 MB / 0.9656 GB, free: 1.082 MB / 0.6076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005402/2.154, allocations: 1.465 MB / 0.967 GB, free: 15.61 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007005/2.155, allocations: 128 kB / 0.9671 GB, free: 15.48 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01661/2.171, allocations: 11.16 MB / 0.978 GB, free: 4.223 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.915e-05/2.171, allocations: 11.38 kB / 0.9781 GB, free: 4.215 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2553/2.427, allocations: 14.13 MB / 0.9919 GB, free: 227.7 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003566/2.43, allocations: 1.466 MB / 0.9933 GB, free: 227.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00102/2.431, allocations: 114.3 kB / 0.9934 GB, free: 227.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003026/2.434, allocations: 322.7 kB / 0.9937 GB, free: 227.2 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000936/2.435, allocations: 402.4 kB / 0.9941 GB, free: 227.2 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003702/2.436, allocations: 166.6 kB / 0.9942 GB, free: 227.2 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.008408/2.444, allocations: 4.305 MB / 0.9985 GB, free: 226.6 MB / 0.6232 GB Notification: Performance of sort global known variables: time 3.41e-07/2.444, allocations: 0 / 0.9985 GB, free: 226.6 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01232/2.457, allocations: 4.089 MB / 1.002 GB, free: 225.3 MB / 0.6232 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.01852/2.475, allocations: 14.93 MB / 1.017 GB, free: 218.3 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01548/2.491, allocations: 11.37 MB / 1.028 GB, free: 214 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-05/2.491, allocations: 4.25 kB / 1.028 GB, free: 214 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.00665/2.497, allocations: 4.647 MB / 1.033 GB, free: 212.2 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007344/2.505, allocations: 1.565 MB / 1.034 GB, free: 211.6 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1373/2.642, allocations: 94.63 MB / 1.127 GB, free: 116.9 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01719/2.659, allocations: 11.26 MB / 1.138 GB, free: 105.6 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.009056/2.668, allocations: 3.77 MB / 1.141 GB, free: 101.8 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01121/2.68, allocations: 5.916 MB / 1.147 GB, free: 95.89 MB / 0.6232 GB Notification: Performance of SimCode: time 1.322e-06/2.68, allocations: 0 / 1.147 GB, free: 95.89 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5201/3.2, allocations: 206.4 MB / 1.349 GB, free: 135.9 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.07/30.27, allocations: 2.062 kB / 1.349 GB, free: 135.9 MB / 0.6232 GB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches