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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008457/0.0008456, allocations: 85.55 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002406, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2364, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3595/0.596, allocations: 119.8 MB / 0.5092 GB, free: 50.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.5962, allocations: 102.8 kB / 0.5093 GB, free: 50.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1771/0.7734, allocations: 80.79 MB / 0.5882 GB, free: 15.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.148e-06/0.7734, allocations: 4 kB / 0.5882 GB, free: 15.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002663/0.7737, allocations: 91.88 kB / 0.5883 GB, free: 15.17 MB / 378.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.01058/0.7843, allocations: 3.869 MB / 0.5921 GB, free: 11.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.7843, allocations: 8.031 kB / 0.5921 GB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001701/0.7861, allocations: 0.4896 MB / 0.5926 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003187/0.7893, allocations: 0.6432 MB / 0.5932 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008363/0.7976, allocations: 3.394 MB / 0.5965 GB, free: 6.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.7979, allocations: 266.9 kB / 0.5968 GB, free: 6.363 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008799/0.7987, allocations: 347.9 kB / 0.5971 GB, free: 6.023 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008739/0.8075, allocations: 4.39 MB / 0.6014 GB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.576e-05/0.8076, allocations: 4 kB / 0.6014 GB, free: 1.488 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003043/0.8079, allocations: 144 kB / 0.6015 GB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/0.808, allocations: 166.8 kB / 0.6017 GB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006054/0.8141, allocations: 3.525 MB / 0.6051 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02365/0.8378, allocations: 14.58 MB / 0.6194 GB, free: 14.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00505/0.8429, allocations: 5.386 MB / 0.6246 GB, free: 8.559 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006689/0.8496, allocations: 3.295 MB / 0.6278 GB, free: 5.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.8497, allocations: 55.86 kB / 0.6279 GB, free: 5.117 MB / 410.7 MB Notification: Performance of pre-optimization done (n=138): time 3.426e-06/0.8497, allocations: 0 / 0.6279 GB, free: 5.117 MB / 410.7 MB Notification: Performance of matching and sorting (n=165): time 0.01436/0.864, allocations: 7.158 MB / 0.6349 GB, free: 13.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.8642, allocations: 68.72 kB / 0.6349 GB, free: 13.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/0.8674, allocations: 1.838 MB / 0.6367 GB, free: 11.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.8675, allocations: 53.7 kB / 0.6368 GB, free: 11.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.8687, allocations: 1.646 MB / 0.6384 GB, free: 10.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004966/0.8692, allocations: 0.5623 MB / 0.6389 GB, free: 9.586 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.8694, allocations: 44 kB / 0.639 GB, free: 9.543 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002446/0.8696, allocations: 389.9 kB / 0.6394 GB, free: 9.156 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.8709, allocations: 0.8629 MB / 0.6402 GB, free: 8.289 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/0.8727, allocations: 1.461 MB / 0.6416 GB, free: 6.559 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.8743, allocations: 1.123 MB / 0.6427 GB, free: 5.434 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/0.8743, allocations: 4 kB / 0.6427 GB, free: 5.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004884/0.8792, allocations: 2.988 MB / 0.6456 GB, free: 2.422 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.8793, allocations: 12 kB / 0.6457 GB, free: 2.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.499e-05/0.8793, allocations: 20 kB / 0.6457 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.8803, allocations: 435.3 kB / 0.6461 GB, free: 1.957 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/0.882, allocations: 479.2 kB / 0.6466 GB, free: 1.488 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00646/0.8885, allocations: 5.709 MB / 0.6521 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/0.8907, allocations: 119.9 kB / 0.6522 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.8909, allocations: 95.92 kB / 0.6523 GB, free: 11.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (229): * Single equations (assignments): 226 * 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 {(6,63.9%) 24,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002461/0.8933, allocations: 1.071 MB / 0.6534 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004942/0.8938, allocations: 221.2 kB / 0.6536 GB, free: 10 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004597/0.8984, allocations: 2.632 MB / 0.6562 GB, free: 7.352 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.8985, allocations: 19.94 kB / 0.6562 GB, free: 7.332 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.8985, allocations: 4 kB / 0.6562 GB, free: 7.328 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/0.8985, allocations: 11.97 kB / 0.6562 GB, free: 7.316 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.9089, allocations: 6.132 MB / 0.6622 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.909, allocations: 0 / 0.6622 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.9101, allocations: 255.6 kB / 0.6624 GB, free: 0.832 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.9115, allocations: 0.5524 MB / 0.663 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.9116, allocations: 31.98 kB / 0.663 GB, free: 248 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2772/1.189, allocations: 8.529 MB / 0.6713 GB, free: 86.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.189, allocations: 3.562 kB / 0.6713 GB, free: 86.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005802/1.195, allocations: 4.032 MB / 0.6753 GB, free: 85.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/1.196, allocations: 0.5028 MB / 0.6758 GB, free: 85.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003292/1.197, allocations: 33.8 kB / 0.6758 GB, free: 85.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/1.198, allocations: 87.91 kB / 0.6759 GB, free: 85.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/1.198, allocations: 118 kB / 0.676 GB, free: 85.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.822e-05/1.198, allocations: 55.2 kB / 0.676 GB, free: 85.42 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002394/1.201, allocations: 1.404 MB / 0.6774 GB, free: 85.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.201, allocations: 1.938 kB / 0.6774 GB, free: 85.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002786/1.204, allocations: 0.6838 MB / 0.6781 GB, free: 85.28 MB / 442.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.im,smpm.stator.zeroInductor.i0,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 (122): * Single equations (assignments): 119 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,63.9%) 23,(1,100.0%) 1,(3,88.9%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006822/1.21, allocations: 5.457 MB / 0.6834 GB, free: 83.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004303/1.215, allocations: 2.694 MB / 0.686 GB, free: 83.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.215, allocations: 5.562 kB / 0.686 GB, free: 83.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002468/1.217, allocations: 1.716 MB / 0.6877 GB, free: 82.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/1.22, allocations: 0.5162 MB / 0.6882 GB, free: 82.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03527/1.255, allocations: 32 MB / 0.7195 GB, free: 62.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002116/1.258, allocations: 2.528 MB / 0.7219 GB, free: 62.11 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002228/1.26, allocations: 0.4979 MB / 0.7224 GB, free: 62.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/1.262, allocations: 1.333 MB / 0.7237 GB, free: 61.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/1.262, allocations: 0 / 0.7237 GB, free: 61.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08333/1.345, allocations: 60 MB / 0.7823 GB, free: 33.56 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/1.345, allocations: 260.2 kB / 0.7826 GB, free: 33.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/5.029, allocations: 0 / 0.7826 GB, free: 33.22 MB / 442.7 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/linux/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)