Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001769/0.001769, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001675/0.001675, allocations: 205.2 kB / 18.74 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.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 59.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.26, allocations: 50.53 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01713/0.2772, allocations: 16.52 MB / 425.3 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.2893, allocations: 5.622 MB / 430.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003399/0.2927, allocations: 107.6 kB / 431 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003567/0.2963, allocations: 1.195 MB / 432.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004692/0.301, allocations: 1.367 MB / 433.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002649/0.3037, allocations: 0.9932 MB / 434.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005656/0.3094, allocations: 4 MB / 438.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005441/0.3149, allocations: 3.615 MB / 442.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003217/0.3181, allocations: 1.908 MB / 444.1 MB, free: 14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003764/0.3219, allocations: 2.343 MB / 446.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001717/0.3236, allocations: 0.5156 MB / 447 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002437/0.3261, allocations: 0.7653 MB / 447.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001848/0.328, allocations: 1.286 MB / 449 MB, free: 9.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004262/0.3322, allocations: 2.259 MB / 451.3 MB, free: 6.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009755/0.342, allocations: 6.964 MB / 458.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3421, allocations: 0 / 458.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3421, allocations: 0 / 458.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002462/0.3423, allocations: 0 / 458.2 MB, free: 15.82 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01417/0.3565, allocations: 4.801 MB / 463 MB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3566, allocations: 8.031 kB / 463 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001373/0.358, allocations: 493.5 kB / 463.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003699/0.3617, allocations: 0.6971 MB / 464.2 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005663/0.3674, allocations: 2.562 MB / 466.8 MB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/0.3676, allocations: 255.3 kB / 467 MB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000879/0.3685, allocations: 355.9 kB / 467.4 MB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008933/0.3775, allocations: 4.464 MB / 471.8 MB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001265/0.3776, allocations: 7.953 kB / 471.8 MB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005725/0.3782, allocations: 140 kB / 472 MB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001868/0.3784, allocations: 162.8 kB / 472.1 MB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008152/0.3866, allocations: 3.755 MB / 475.9 MB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02571/0.4123, allocations: 14.52 MB / 490.4 MB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005842/0.4182, allocations: 5.614 MB / 496 MB, free: 8.613 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00347/0.4217, allocations: 1.685 MB / 497.7 MB, free: 6.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009066/0.4308, allocations: 4.223 MB / 0.4902 GB, free: 2.566 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.4309, allocations: 47.81 kB / 0.4902 GB, free: 2.512 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 4.789e-06/0.4309, allocations: 0 / 0.4902 GB, free: 2.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01183/0.4428, allocations: 5.716 MB / 0.4958 GB, free: 12.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.4429, allocations: 76.66 kB / 0.4959 GB, free: 12.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004507/0.4474, allocations: 2.111 MB / 0.4979 GB, free: 10.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.4477, allocations: 49.7 kB / 0.498 GB, free: 10.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.4492, allocations: 1.705 MB / 0.4996 GB, free: 8.625 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007176/0.4499, allocations: 491.8 kB / 0.5001 GB, free: 8.141 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008567/0.4508, allocations: 335.4 kB / 0.5004 GB, free: 7.805 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4509, allocations: 309.1 kB / 0.5007 GB, free: 7.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.4523, allocations: 0.7223 MB / 0.5014 GB, free: 6.777 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/0.454, allocations: 1.376 MB / 0.5028 GB, free: 5.113 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003274/0.4573, allocations: 2.25 MB / 0.505 GB, free: 2.582 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-05/0.4573, allocations: 8 kB / 0.505 GB, free: 2.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005256/0.4626, allocations: 2.605 MB / 0.5075 GB, free: 15.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.4627, allocations: 16 kB / 0.5075 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.615e-05/0.4628, allocations: 23.98 kB / 0.5076 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005837/0.4634, allocations: 186.6 kB / 0.5077 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.4651, allocations: 455.3 kB / 0.5082 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003886/0.469, allocations: 3.792 MB / 0.5119 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001867/0.4709, allocations: 112 kB / 0.512 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/0.4712, allocations: 87.98 kB / 0.5121 GB, free: 10.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * 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): 2 systems {(1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002537/0.4737, allocations: 1.051 MB / 0.5131 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008858/0.4746, allocations: 226.5 kB / 0.5133 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/0.4809, allocations: 2.268 MB / 0.5155 GB, free: 7.375 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.213e-05/0.481, allocations: 15.94 kB / 0.5155 GB, free: 7.359 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.433e-05/0.481, allocations: 4 kB / 0.5155 GB, free: 7.355 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-05/0.481, allocations: 19.89 kB / 0.5156 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01552/0.4966, allocations: 5.293 MB / 0.5207 GB, free: 1.906 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.071e-05/0.4966, allocations: 4 kB / 0.5207 GB, free: 1.902 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/0.4983, allocations: 223.6 kB / 0.521 GB, free: 1.684 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.4996, allocations: 323.5 kB / 0.5213 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002203/0.4998, allocations: 35.98 kB / 0.5213 GB, free: 1.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/0.5112, allocations: 8.247 MB / 0.5294 GB, free: 8.508 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.5113, allocations: 0 / 0.5294 GB, free: 8.508 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008272/0.5195, allocations: 3.291 MB / 0.5326 GB, free: 5.121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/0.5213, allocations: 475.5 kB / 0.533 GB, free: 4.637 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008752/0.5222, allocations: 28 kB / 0.533 GB, free: 4.609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001944/0.5242, allocations: 75.92 kB / 0.5331 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003482/0.5246, allocations: 93.06 kB / 0.5332 GB, free: 4.445 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.5247, allocations: 39.98 kB / 0.5332 GB, free: 4.406 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004104/0.5288, allocations: 1.439 MB / 0.5346 GB, free: 2.949 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.083e-06/0.5289, allocations: 0 / 0.5346 GB, free: 2.949 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003747/0.5326, allocations: 0.5702 MB / 0.5352 GB, free: 2.379 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.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 (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2453/0.7779, allocations: 3.909 MB / 0.539 GB, free: 122 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003423/0.7814, allocations: 2.166 MB / 0.5411 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.7814, allocations: 0 / 0.5411 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.7832, allocations: 1.423 MB / 0.5425 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002759/0.786, allocations: 0.571 MB / 0.5431 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0278/0.8138, allocations: 21.56 MB / 0.5641 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001701/0.8156, allocations: 2.421 MB / 0.5665 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001474/0.8171, allocations: 498.5 kB / 0.567 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/0.8186, allocations: 1.3 MB / 0.5683 GB, free: 102.4 MB / 462.1 MB Notification: Performance of SimCode: time 9.51e-07/0.8186, allocations: 0 / 0.5683 GB, free: 102.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08305/0.9016, allocations: 52.43 MB / 0.6195 GB, free: 50.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/14.98, allocations: 4.188 kB / 0.6195 GB, free: 50.5 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches