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/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_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/Complex trunk/package.mo): time 0.001275/0.001276, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00091/0.0009104, allocations: 89.91 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.344e-05/3.354e-05, allocations: 4 kB / 350.7 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4087/0.522, allocations: 120.8 MB / 0.5107 GB, free: 1.324 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003492/0.5224, allocations: 94.12 kB / 0.5108 GB, free: 1.273 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.496/1.018, allocations: 83.39 MB / 0.5922 GB, free: 77.61 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.372e-06/1.018, allocations: 0 / 0.5922 GB, free: 77.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002741/1.019, allocations: 95.12 kB / 0.5923 GB, free: 77.59 MB / 442.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.0117/1.03, allocations: 3.48 MB / 0.5957 GB, free: 76.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/1.031, allocations: 9.875 kB / 0.5957 GB, free: 76.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002119/1.033, allocations: 0.4898 MB / 0.5962 GB, free: 76.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005017/1.038, allocations: 0.6409 MB / 0.5968 GB, free: 75.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01297/1.051, allocations: 3.4 MB / 0.6001 GB, free: 75.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004312/1.051, allocations: 263.9 kB / 0.6004 GB, free: 75.31 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001694/1.053, allocations: 342.6 kB / 0.6007 GB, free: 75.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01449/1.067, allocations: 4.327 MB / 0.605 GB, free: 74.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002156/1.068, allocations: 6.25 kB / 0.605 GB, free: 74.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001103/1.069, allocations: 150.1 kB / 0.6051 GB, free: 74.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001991/1.069, allocations: 159 kB / 0.6053 GB, free: 74.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009134/1.078, allocations: 3.432 MB / 0.6086 GB, free: 74.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03444/1.113, allocations: 14.74 MB / 0.623 GB, free: 70.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005532/1.118, allocations: 5.615 MB / 0.6285 GB, free: 65.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003233/1.121, allocations: 1.572 MB / 0.63 GB, free: 65.46 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009876/1.131, allocations: 4.278 MB / 0.6342 GB, free: 63.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/1.131, allocations: 45.44 kB / 0.6342 GB, free: 63.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 3.577e-06/1.131, allocations: 0 / 0.6342 GB, free: 63.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.008271/1.14, allocations: 4.373 MB / 0.6385 GB, free: 60.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/1.14, allocations: 68.44 kB / 0.6386 GB, free: 60.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/1.143, allocations: 1.845 MB / 0.6404 GB, free: 59.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002168/1.143, allocations: 45.58 kB / 0.6404 GB, free: 59.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009092/1.144, allocations: 1.672 MB / 0.6421 GB, free: 58.63 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003407/1.145, allocations: 458.2 kB / 0.6425 GB, free: 58.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.321e-05/1.145, allocations: 39.69 kB / 0.6425 GB, free: 58.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/1.145, allocations: 388.9 kB / 0.6429 GB, free: 57.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009571/1.146, allocations: 0.7017 MB / 0.6436 GB, free: 57.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/1.147, allocations: 1.317 MB / 0.6449 GB, free: 56.58 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/1.148, allocations: 0.9384 MB / 0.6458 GB, free: 56.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/1.148, allocations: 7.625 kB / 0.6458 GB, free: 56.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.003688/1.152, allocations: 2.54 MB / 0.6483 GB, free: 55.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/1.152, allocations: 14.31 kB / 0.6483 GB, free: 55.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/1.152, allocations: 18.53 kB / 0.6483 GB, free: 55.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000456/1.152, allocations: 193 kB / 0.6485 GB, free: 55.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/1.154, allocations: 458.1 kB / 0.6489 GB, free: 55.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/1.157, allocations: 3.493 MB / 0.6523 GB, free: 52.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/1.16, allocations: 117.8 kB / 0.6525 GB, free: 52.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/1.16, allocations: 84.45 kB / 0.6525 GB, free: 51.99 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 217 * 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.0003644/1.16, allocations: 213.6 kB / 0.6527 GB, free: 51.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/1.16, allocations: 220.5 kB / 0.6529 GB, free: 51.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003658/1.164, allocations: 2.233 MB / 0.6551 GB, free: 50.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/1.164, allocations: 13.97 kB / 0.6551 GB, free: 50.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/1.164, allocations: 11.8 kB / 0.6552 GB, free: 50.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/1.164, allocations: 6.234 kB / 0.6552 GB, free: 50.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007463/1.172, allocations: 5.273 MB / 0.6603 GB, free: 48.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/1.172, allocations: 4.188 kB / 0.6603 GB, free: 48.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009211/1.173, allocations: 225.7 kB / 0.6605 GB, free: 48.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006994/1.173, allocations: 327.5 kB / 0.6608 GB, free: 48.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.068e-05/1.173, allocations: 34.75 kB / 0.6609 GB, free: 48.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005256/1.179, allocations: 7.538 MB / 0.6682 GB, free: 41.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.179, allocations: 3.781 kB / 0.6682 GB, free: 41.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004393/1.183, allocations: 3.383 MB / 0.6715 GB, free: 39.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/1.184, allocations: 471.8 kB / 0.672 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/1.184, allocations: 30.78 kB / 0.672 GB, free: 39.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009939/1.185, allocations: 79.34 kB / 0.6721 GB, free: 39.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/1.186, allocations: 88.23 kB / 0.6722 GB, free: 39.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.171e-05/1.186, allocations: 40.27 kB / 0.6722 GB, free: 39.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002178/1.188, allocations: 1.401 MB / 0.6736 GB, free: 38.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.188, allocations: 0 / 0.6736 GB, free: 38.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002518/1.19, allocations: 0.6333 MB / 0.6742 GB, free: 38.66 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.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * 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.004795/1.195, allocations: 4.861 MB / 0.679 GB, free: 35.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002774/1.198, allocations: 2.091 MB / 0.681 GB, free: 34.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.198, allocations: 0 / 0.681 GB, free: 34.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001665/1.2, allocations: 1.385 MB / 0.6823 GB, free: 33.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/1.202, allocations: 0.5085 MB / 0.6828 GB, free: 33.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/1.213, allocations: 5.77 MB / 0.6885 GB, free: 31.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001872/1.215, allocations: 2.484 MB / 0.6909 GB, free: 30.31 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001716/1.217, allocations: 497 kB / 0.6914 GB, free: 30.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/1.218, allocations: 1.298 MB / 0.6926 GB, free: 29.18 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/1.218, allocations: 0 / 0.6926 GB, free: 29.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3792/1.597, allocations: 56.45 MB / 0.7478 GB, free: 87.46 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/1.598, allocations: 217.9 kB / 0.748 GB, free: 87.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.823/5.421, allocations: 1.125 kB / 0.748 GB, free: 87.25 MB / 458.7 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat