Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_cpp_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_cpp_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/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 191.7 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.158/1.158, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007672/0.0007672, allocations: 107.4 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001923/0.0001923, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1713, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01033/0.1817, allocations: 14.51 MB / 422.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007075/0.1888, allocations: 5.196 MB / 427.9 MB, free: 7.941 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002196/0.191, allocations: 95.62 kB / 428 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002213/0.1932, allocations: 0.8621 MB / 428.8 MB, free: 6.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002734/0.196, allocations: 1.072 MB / 429.9 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.1975, allocations: 0.7002 MB / 430.6 MB, free: 5.207 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002972/0.2005, allocations: 3.922 MB / 434.5 MB, free: 1.273 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002737/0.2032, allocations: 3.029 MB / 437.5 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.2046, allocations: 1.303 MB / 438.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.2063, allocations: 1.723 MB / 440.6 MB, free: 11.13 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003184/0.2066, allocations: 204 kB / 440.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009061/0.2075, allocations: 459.7 kB / 441.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006877/0.2082, allocations: 0.8837 MB / 442.1 MB, free: 9.598 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.2097, allocations: 1.763 MB / 443.9 MB, free: 7.82 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004098/0.2138, allocations: 5.618 MB / 449.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2138, allocations: 0 / 449.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2138, allocations: 0 / 449.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.89e-05/0.2139, allocations: 4 kB / 449.5 MB, free: 2.184 MB / 314.7 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.007829/0.2218, allocations: 3.948 MB / 453.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2218, allocations: 15.97 kB / 453.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006892/0.2225, allocations: 493.5 kB / 453.9 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00262/0.2251, allocations: 0.6791 MB / 454.6 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003688/0.2289, allocations: 2.447 MB / 457.1 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/0.2291, allocations: 275.2 kB / 457.3 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004508/0.2295, allocations: 347.8 kB / 457.7 MB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006704/0.2363, allocations: 4.441 MB / 462.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.128e-05/0.2364, allocations: 7.906 kB / 462.1 MB, free: 5.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002766/0.2366, allocations: 143.9 kB / 462.3 MB, free: 5.215 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.2368, allocations: 166.8 kB / 462.4 MB, free: 5.051 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00566/0.2424, allocations: 3.728 MB / 466.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01882/0.2613, allocations: 14.72 MB / 480.9 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004504/0.2658, allocations: 5.614 MB / 486.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002517/0.2684, allocations: 1.596 MB / 488.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005955/0.2743, allocations: 4.222 MB / 492.3 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.2744, allocations: 51.86 kB / 492.3 MB, free: 5.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 2.645e-06/0.2744, allocations: 0 / 492.3 MB, free: 5.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.008637/0.283, allocations: 5.682 MB / 498 MB, free: 15.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.2831, allocations: 68.72 kB / 498.1 MB, free: 15.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/0.2856, allocations: 2.099 MB / 0.4885 GB, free: 13.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.074e-05/0.2857, allocations: 49.7 kB / 0.4885 GB, free: 13.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009373/0.2867, allocations: 1.657 MB / 0.4901 GB, free: 11.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002926/0.287, allocations: 465.3 kB / 0.4906 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.597e-05/0.2871, allocations: 36 kB / 0.4906 GB, free: 11.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2872, allocations: 373.9 kB / 0.491 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.2882, allocations: 0.7301 MB / 0.4917 GB, free: 10.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.2896, allocations: 1.356 MB / 0.493 GB, free: 8.715 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.2921, allocations: 2.25 MB / 0.4952 GB, free: 6.184 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/0.2922, allocations: 8 kB / 0.4952 GB, free: 6.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003513/0.2957, allocations: 2.588 MB / 0.4977 GB, free: 3.551 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.2957, allocations: 12 kB / 0.4978 GB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/0.2957, allocations: 23.98 kB / 0.4978 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004245/0.2962, allocations: 191 kB / 0.498 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.2977, allocations: 463.2 kB / 0.4984 GB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1497/0.4474, allocations: 3.501 MB / 0.5018 GB, free: 87.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.4491, allocations: 107.7 kB / 0.5019 GB, free: 87.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.4493, allocations: 86.23 kB / 0.502 GB, free: 87.2 MB / 378.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001682/0.451, allocations: 1.047 MB / 0.503 GB, free: 87.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003001/0.4513, allocations: 219.6 kB / 0.5032 GB, free: 87.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003184/0.4545, allocations: 2.265 MB / 0.5054 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.4545, allocations: 16.92 kB / 0.5055 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4545, allocations: 6.062 kB / 0.5055 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.4545, allocations: 5.344 kB / 0.5055 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006333/0.4609, allocations: 5.304 MB / 0.5107 GB, free: 83.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.4609, allocations: 0 / 0.5107 GB, free: 83.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008709/0.4618, allocations: 227.8 kB / 0.5109 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007489/0.4625, allocations: 320.6 kB / 0.5112 GB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.268e-05/0.4626, allocations: 35.2 kB / 0.5112 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005163/0.4678, allocations: 7.541 MB / 0.5186 GB, free: 77.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.4678, allocations: 10.12 kB / 0.5186 GB, free: 77.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003827/0.4716, allocations: 3.286 MB / 0.5218 GB, free: 75.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006925/0.4724, allocations: 471 kB / 0.5222 GB, free: 75.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.4726, allocations: 27.81 kB / 0.5223 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008872/0.4735, allocations: 70.17 kB / 0.5223 GB, free: 75.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.4737, allocations: 95.91 kB / 0.5224 GB, free: 75.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.35e-05/0.4738, allocations: 42.31 kB / 0.5225 GB, free: 75.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001649/0.4754, allocations: 1.425 MB / 0.5239 GB, free: 74.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4754, allocations: 0 / 0.5239 GB, free: 74.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001578/0.477, allocations: 0.5709 MB / 0.5244 GB, free: 74.62 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003794/0.4808, allocations: 3.908 MB / 0.5282 GB, free: 71.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002459/0.4833, allocations: 2.137 MB / 0.5303 GB, free: 68.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4833, allocations: 0 / 0.5303 GB, free: 68.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.4848, allocations: 1.413 MB / 0.5317 GB, free: 67.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/0.4876, allocations: 0.5269 MB / 0.5322 GB, free: 66.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02452/0.5121, allocations: 18.43 MB / 0.5502 GB, free: 47.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.5136, allocations: 2.369 MB / 0.5525 GB, free: 44.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/0.5149, allocations: 1.315 MB / 0.5538 GB, free: 43.44 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5149, allocations: 0 / 0.5538 GB, free: 43.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.843/6.358, allocations: 110.6 MB / 0.6618 GB, free: 12.7 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches