Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 55.5 kB / 307.1 MB, free: 472 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.08214, allocations: 50.53 MB / 357.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.177/0.2592, allocations: 30.97 MB / 388.6 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.2757, allocations: 8.899 MB / 397.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00585/0.2816, allocations: 189.9 kB / 397.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01191/0.2935, allocations: 4.917 MB / 402.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009707/0.3033, allocations: 2.97 MB / 405.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005354/0.3086, allocations: 1.621 MB / 407.2 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01404/0.3227, allocations: 8.762 MB / 415.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01973/0.3425, allocations: 12.91 MB / 428.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006588/0.3491, allocations: 4.215 MB / 433.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007415/0.3565, allocations: 4.839 MB / 437.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002866/0.3594, allocations: 1.164 MB / 439.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004731/0.3642, allocations: 1.562 MB / 440.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003449/0.3676, allocations: 2.416 MB / 443 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007785/0.3754, allocations: 4.676 MB / 447.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01826/0.3937, allocations: 15.75 MB / 463.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3938, allocations: 0 / 463.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3938, allocations: 4 kB / 463.5 MB, free: 2.219 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003933/0.3942, allocations: 4 kB / 463.5 MB, free: 2.215 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02933/0.4235, allocations: 9.822 MB / 473.3 MB, free: 8.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.4236, allocations: 12.03 kB / 473.3 MB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003308/0.4269, allocations: 1.153 MB / 474.5 MB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02901/0.4559, allocations: 5.243 MB / 479.7 MB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.4663, allocations: 4.999 MB / 484.7 MB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005286/0.4668, allocations: 0.5378 MB / 485.2 MB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002411/0.4692, allocations: 0.7069 MB / 485.9 MB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02613/0.4954, allocations: 11.33 MB / 497.3 MB, free: 128 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000261/0.4957, allocations: 19.8 kB / 497.3 MB, free: 108 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001641/0.4973, allocations: 304 kB / 497.6 MB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004351/0.4978, allocations: 439 kB / 498 MB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02098/0.5188, allocations: 10.82 MB / 0.4969 GB, free: 4.547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.224/0.7428, allocations: 38.89 MB / 0.5349 GB, free: 122.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01737/0.7603, allocations: 28.28 MB / 0.5625 GB, free: 96.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004801/0.7651, allocations: 2.677 MB / 0.5651 GB, free: 96.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/0.7785, allocations: 8.448 MB / 0.5734 GB, free: 94.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.7786, allocations: 61.06 kB / 0.5734 GB, free: 94.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.088e-06/0.7786, allocations: 0 / 0.5734 GB, free: 94.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01901/0.7976, allocations: 10.36 MB / 0.5835 GB, free: 89.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001641/0.7993, allocations: 2.012 MB / 0.5855 GB, free: 87.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004965/0.8042, allocations: 3.834 MB / 0.5892 GB, free: 86.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003577/0.8046, allocations: 65.36 kB / 0.5893 GB, free: 86.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/0.8061, allocations: 3.565 MB / 0.5928 GB, free: 83.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006274/0.8068, allocations: 0.8249 MB / 0.5936 GB, free: 83.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/0.8079, allocations: 0.9598 MB / 0.5945 GB, free: 82.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.672e-05/0.8079, allocations: 301.1 kB / 0.5948 GB, free: 82.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002306/0.8102, allocations: 1.89 MB / 0.5967 GB, free: 81.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003288/0.8135, allocations: 4.4 MB / 0.601 GB, free: 77.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006077/0.8196, allocations: 6.781 MB / 0.6076 GB, free: 71.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-05/0.8197, allocations: 27.41 kB / 0.6076 GB, free: 71.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009804/0.8295, allocations: 6.987 MB / 0.6144 GB, free: 65.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.8296, allocations: 40 kB / 0.6145 GB, free: 65.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.785e-05/0.8297, allocations: 89.17 kB / 0.6146 GB, free: 65.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/0.8314, allocations: 0.7477 MB / 0.6153 GB, free: 64.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00337/0.8348, allocations: 1.119 MB / 0.6164 GB, free: 63.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00581/0.8406, allocations: 5.636 MB / 0.6219 GB, free: 57.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003741/0.8444, allocations: 319 kB / 0.6222 GB, free: 57.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004446/0.8448, allocations: 276 kB / 0.6225 GB, free: 57 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003352/0.8482, allocations: 2.522 MB / 0.6249 GB, free: 54.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006996/0.8489, allocations: 387.2 kB / 0.6253 GB, free: 54.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006025/0.8549, allocations: 4.281 MB / 0.6295 GB, free: 49.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.855, allocations: 24 kB / 0.6295 GB, free: 49.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.855, allocations: 4 kB / 0.6295 GB, free: 49.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.855, allocations: 15.95 kB / 0.6295 GB, free: 49.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/0.8736, allocations: 14.3 MB / 0.6435 GB, free: 35.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/0.8737, allocations: 12 kB / 0.6435 GB, free: 35.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/0.8753, allocations: 483.2 kB / 0.6439 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0018/0.8772, allocations: 0.6977 MB / 0.6446 GB, free: 34.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001902/0.8774, allocations: 67.98 kB / 0.6447 GB, free: 33.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007261/0.8846, allocations: 7.504 MB / 0.652 GB, free: 26.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001252/0.8859, allocations: 1.949 MB / 0.6539 GB, free: 24.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007998/0.8939, allocations: 6.747 MB / 0.6605 GB, free: 17.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/0.8956, allocations: 0.7928 MB / 0.6613 GB, free: 16.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00058/0.8962, allocations: 64.36 kB / 0.6613 GB, free: 16.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00177/0.898, allocations: 163.9 kB / 0.6615 GB, free: 16.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000387/0.8984, allocations: 229.3 kB / 0.6617 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.8986, allocations: 91.98 kB / 0.6618 GB, free: 15.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003046/0.9016, allocations: 2.518 MB / 0.6643 GB, free: 13.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9016, allocations: 0 / 0.6643 GB, free: 13.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004387/0.906, allocations: 1.307 MB / 0.6655 GB, free: 11.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008107/0.9141, allocations: 7.439 MB / 0.6728 GB, free: 4.156 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01184/0.926, allocations: 7.007 MB / 0.6797 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/0.926, allocations: 0 / 0.6797 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003732/0.9298, allocations: 2.404 MB / 0.682 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004876/0.9347, allocations: 1.008 MB / 0.683 GB, free: 9.711 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2603/1.195, allocations: 55.4 MB / 0.7371 GB, free: 139.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004762/1.2, allocations: 4.506 MB / 0.7415 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003999/1.204, allocations: 1.37 MB / 0.7428 GB, free: 137.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002999/1.207, allocations: 2.55 MB / 0.7453 GB, free: 135.8 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/1.207, allocations: 0 / 0.7453 GB, free: 135.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1349/1.342, allocations: 106.5 MB / 0.8494 GB, free: 33.62 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.99, allocations: 19.64 kB / 0.8494 GB, free: 33.6 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches