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.001671/0.001671, allocations: 115.4 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00171/0.00171, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 54.78 kB / 306.6 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.08327, allocations: 50.53 MB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1518/0.2351, allocations: 16.29 MB / 373.4 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008554/0.2437, allocations: 5.516 MB / 378.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002686/0.2464, allocations: 103.9 kB / 379 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002988/0.2494, allocations: 1.002 MB / 380 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004075/0.2536, allocations: 1.191 MB / 381.2 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002192/0.2558, allocations: 0.8942 MB / 382.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004497/0.2603, allocations: 4.075 MB / 386.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004094/0.2644, allocations: 3.631 MB / 389.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002185/0.2666, allocations: 1.833 MB / 391.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.2688, allocations: 2.277 MB / 393.9 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005863/0.2694, allocations: 0.5144 MB / 394.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.2707, allocations: 0.7748 MB / 395.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008094/0.2715, allocations: 1.29 MB / 396.5 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001609/0.2731, allocations: 2.255 MB / 398.7 MB, free: 132 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005386/0.2785, allocations: 6.852 MB / 405.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2786, allocations: 1.188 kB / 405.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2786, allocations: 0 / 405.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.012e-05/0.2786, allocations: 4 kB / 405.6 MB, free: 11.18 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.008683/0.2873, allocations: 4.692 MB / 410.3 MB, free: 6.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.2874, allocations: 8.031 kB / 410.3 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000546/0.2879, allocations: 492.3 kB / 410.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002772/0.2907, allocations: 0.6855 MB / 411.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003384/0.2941, allocations: 2.454 MB / 413.9 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.2943, allocations: 265.5 kB / 414.2 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004216/0.2947, allocations: 351 kB / 414.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006215/0.301, allocations: 4.463 MB / 419 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.009e-05/0.301, allocations: 11.91 kB / 419 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000291/0.3013, allocations: 138.6 kB / 419.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/0.3015, allocations: 162.8 kB / 419.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005335/0.3068, allocations: 3.751 MB / 423 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01855/0.3254, allocations: 14.64 MB / 437.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00483/0.3302, allocations: 5.629 MB / 443.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002444/0.3327, allocations: 1.564 MB / 444.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006817/0.3395, allocations: 4.202 MB / 449.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.3396, allocations: 55.81 kB / 449.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 3.026e-06/0.3396, allocations: 3.938 kB / 449.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01008/0.3497, allocations: 5.658 MB / 454.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.3498, allocations: 68.66 kB / 454.9 MB, free: 8.555 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003347/0.3531, allocations: 2.118 MB / 457 MB, free: 6.402 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.947e-05/0.3532, allocations: 45.7 kB / 457 MB, free: 6.352 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.3544, allocations: 1.661 MB / 458.7 MB, free: 4.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/0.3547, allocations: 460.7 kB / 459.1 MB, free: 4.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005104/0.3553, allocations: 351.1 kB / 459.5 MB, free: 3.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.3554, allocations: 301.1 kB / 459.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3565, allocations: 0.73 MB / 460.5 MB, free: 2.859 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.358, allocations: 1.368 MB / 461.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002769/0.3608, allocations: 2.25 MB / 464.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/0.3608, allocations: 8 kB / 464.1 MB, free: 14.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003801/0.3646, allocations: 2.592 MB / 466.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.3647, allocations: 15.98 kB / 466.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.76e-05/0.3647, allocations: 23.98 kB / 466.8 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000448/0.3652, allocations: 190.9 kB / 467 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.3667, allocations: 459.3 kB / 467.4 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/0.3697, allocations: 3.784 MB / 471.2 MB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.3711, allocations: 119.8 kB / 471.3 MB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.3713, allocations: 87.98 kB / 471.4 MB, free: 7.082 MB / 382.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.001466/0.3727, allocations: 1.048 MB / 472.4 MB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003298/0.3731, allocations: 217.3 kB / 472.6 MB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003432/0.3765, allocations: 2.271 MB / 474.9 MB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.3765, allocations: 12 kB / 474.9 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.3765, allocations: 4 kB / 474.9 MB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.3766, allocations: 15.97 kB / 475 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007769/0.3843, allocations: 5.302 MB / 480.3 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.3844, allocations: 4.062 kB / 480.3 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009565/0.3853, allocations: 227.6 kB / 480.5 MB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007643/0.3861, allocations: 323.3 kB / 480.8 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.414e-05/0.3862, allocations: 35.98 kB / 480.8 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006844/0.3931, allocations: 8.238 MB / 489.1 MB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3931, allocations: 0 / 489.1 MB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004623/0.3977, allocations: 3.281 MB / 492.3 MB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009327/0.3987, allocations: 466.3 kB / 492.8 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004724/0.3991, allocations: 24 kB / 492.8 MB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.4003, allocations: 79.92 kB / 492.9 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.4005, allocations: 93.06 kB / 493 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.347e-05/0.4006, allocations: 39.98 kB / 493 MB, free: 0.5781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002169/0.4027, allocations: 1.439 MB / 494.5 MB, free: 15.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4027, allocations: 4 kB / 494.5 MB, free: 15.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001968/0.4047, allocations: 0.5703 MB / 495 MB, free: 14.55 MB / 414.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.004782/0.4095, allocations: 3.899 MB / 498.9 MB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004512/0.414, allocations: 2.612 MB / 0.4898 GB, free: 7.887 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4141, allocations: 0 / 0.4898 GB, free: 7.887 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001919/0.416, allocations: 1.415 MB / 0.4912 GB, free: 6.422 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/0.4184, allocations: 0.5747 MB / 0.4917 GB, free: 5.859 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0411/0.4595, allocations: 25.58 MB / 0.5167 GB, free: 10.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002376/0.4619, allocations: 2.425 MB / 0.5191 GB, free: 7.684 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00167/0.4636, allocations: 494.6 kB / 0.5196 GB, free: 7.199 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001596/0.4652, allocations: 1.3 MB / 0.5208 GB, free: 5.898 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4652, allocations: 0 / 0.5208 GB, free: 5.898 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.398/0.8633, allocations: 53.02 MB / 0.5726 GB, free: 121.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/0.8635, allocations: 282.8 kB / 0.5729 GB, free: 121.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.016/3.879, allocations: 6.031 kB / 0.5729 GB, free: 121.4 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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