Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001162/0.001166, allocations: 111.7 kB / 16.62 MB, free: 6.812 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.001181/0.001182, allocations: 190 kB / 17.55 MB, free: 5.934 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.375/1.375, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 43.45 kB / 300.3 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1164, allocations: 49.44 MB / 349.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.0186/0.135, allocations: 15.69 MB / 365.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2404/0.3755, allocations: 5.27 MB / 370.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005384/0.3809, allocations: 98.88 kB / 370.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005327/0.3863, allocations: 0.9787 MB / 371.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007178/0.3935, allocations: 1.209 MB / 372.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00351/0.3971, allocations: 0.8664 MB / 373.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.4074, allocations: 4.024 MB / 377.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007578/0.415, allocations: 3.629 MB / 381.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005004/0.4201, allocations: 1.831 MB / 383.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006756/0.4268, allocations: 2.269 MB / 385.6 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003522/0.4304, allocations: 0.515 MB / 386.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005323/0.4358, allocations: 0.7465 MB / 386.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001893/0.4377, allocations: 1.297 MB / 388.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006322/0.444, allocations: 2.245 MB / 390.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4542, allocations: 6.822 MB / 397.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.067e-05/0.4543, allocations: 0 / 397.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.358e-06/0.4543, allocations: 0 / 397.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002615/0.4546, allocations: 0 / 397.2 MB, free: 15.97 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.01351/0.4681, allocations: 4.663 MB / 401.8 MB, free: 12.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.4682, allocations: 11.89 kB / 401.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007216/0.4689, allocations: 493.5 kB / 402.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003279/0.4722, allocations: 0.674 MB / 403 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005196/0.4774, allocations: 2.442 MB / 405.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002925/0.4777, allocations: 267.7 kB / 405.7 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006835/0.4784, allocations: 346.3 kB / 406.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.4895, allocations: 4.468 MB / 410.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001259/0.4896, allocations: 7.906 kB / 410.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000491/0.4901, allocations: 139.8 kB / 410.7 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000247/0.4904, allocations: 170.8 kB / 410.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.5005, allocations: 3.745 MB / 414.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04099/0.5416, allocations: 14.47 MB / 429.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007643/0.5493, allocations: 5.362 MB / 434.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0027/0.5521, allocations: 1.278 MB / 435.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01022/0.5623, allocations: 3.824 MB / 439.5 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.657e-05/0.5624, allocations: 47.81 kB / 439.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 5.12e-06/0.5625, allocations: 0 / 439.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01416/0.5766, allocations: 5.495 MB / 445.1 MB, free: 220 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/0.5767, allocations: 72.64 kB / 445.1 MB, free: 136 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006782/0.5835, allocations: 2.101 MB / 447.2 MB, free: 14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002781/0.5838, allocations: 49.7 kB / 447.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.5856, allocations: 1.656 MB / 448.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006461/0.5862, allocations: 466.5 kB / 449.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006897/0.587, allocations: 335.2 kB / 449.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.5871, allocations: 305.1 kB / 450 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.5885, allocations: 0.7223 MB / 450.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001881/0.5904, allocations: 1.348 MB / 452.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003751/0.5942, allocations: 2.228 MB / 454.3 MB, free: 6.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.232e-05/0.5942, allocations: 4 kB / 454.3 MB, free: 6.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005869/0.6001, allocations: 2.529 MB / 456.9 MB, free: 3.762 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.37e-05/0.6002, allocations: 15.98 kB / 456.9 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.338e-05/0.6003, allocations: 20 kB / 456.9 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004936/0.6008, allocations: 134.5 kB / 457 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.6025, allocations: 471.2 kB / 457.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003836/0.6064, allocations: 3.359 MB / 460.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002686/0.6091, allocations: 111.9 kB / 460.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002378/0.6094, allocations: 84 kB / 461 MB, free: 15.3 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 (227): * Single equations (assignments): 224 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003382/0.6128, allocations: 1.04 MB / 462.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.6138, allocations: 213.4 kB / 462.3 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004956/0.6188, allocations: 2.189 MB / 464.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.6188, allocations: 16 kB / 464.5 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-05/0.6189, allocations: 4 kB / 464.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.6189, allocations: 11.91 kB / 464.5 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.6311, allocations: 5.181 MB / 469.7 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.6312, allocations: 4 kB / 469.7 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.6323, allocations: 231.9 kB / 469.9 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008903/0.6333, allocations: 279.2 kB / 470.2 MB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.6334, allocations: 32 kB / 470.2 MB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009206/0.6426, allocations: 7.819 MB / 478 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.6427, allocations: 0 / 478 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007646/0.6503, allocations: 3.192 MB / 481.2 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002364/0.6528, allocations: 454.3 kB / 481.7 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/0.6539, allocations: 28 kB / 481.7 MB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002026/0.656, allocations: 75.92 kB / 481.8 MB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/0.6563, allocations: 89.12 kB / 481.9 MB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.6565, allocations: 39.98 kB / 481.9 MB, free: 9.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004073/0.6605, allocations: 1.43 MB / 483.3 MB, free: 8.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6606, allocations: 0 / 483.3 MB, free: 8.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004137/0.6647, allocations: 0.5625 MB / 483.9 MB, free: 7.57 MB / 398.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 (112): * Single equations (assignments): 108 * 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,5,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.006846/0.6716, allocations: 3.802 MB / 487.7 MB, free: 3.664 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005647/0.6772, allocations: 2.577 MB / 490.3 MB, free: 1.043 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.6773, allocations: 0.8125 kB / 490.3 MB, free: 1.043 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.6795, allocations: 1.385 MB / 491.7 MB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004585/0.6841, allocations: 0.5671 MB / 492.2 MB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05752/0.7417, allocations: 25.36 MB / 0.5054 GB, free: 3.555 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003967/0.7457, allocations: 2.413 MB / 0.5078 GB, free: 1.109 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001918/0.7476, allocations: 498.5 kB / 0.5083 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002139/0.7498, allocations: 1.307 MB / 0.5096 GB, free: 15.37 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.7498, allocations: 0 / 0.5096 GB, free: 15.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2733/1.023, allocations: 52.41 MB / 0.5607 GB, free: 135.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/1.023, allocations: 282.1 kB / 0.561 GB, free: 134.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.18/4.204, allocations: 0 / 0.561 GB, free: 134.9 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches