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.001153/0.001153, allocations: 198.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008589/0.0008592, allocations: 98.53 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.753e-05/1.757e-05, allocations: 0 / 343.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1156, allocations: 51.48 MB / 395.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3892/0.5048, allocations: 120.2 MB / 0.5034 GB, free: 5.406 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.5052, allocations: 97.75 kB / 0.5034 GB, free: 5.355 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4785/0.9837, allocations: 82.33 MB / 0.5839 GB, free: 72.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.9837, allocations: 2.875 kB / 0.5839 GB, free: 72.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002957/0.984, allocations: 98.97 kB / 0.5839 GB, free: 72.68 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.01081/0.9949, allocations: 3.477 MB / 0.5873 GB, free: 71.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.215e-05/0.995, allocations: 9.438 kB / 0.5874 GB, free: 71.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004278/0.9992, allocations: 0.6408 MB / 0.588 GB, free: 71.24 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008732/1.008, allocations: 3.402 MB / 0.5913 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/1.008, allocations: 110.8 kB / 0.5914 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/1.009, allocations: 207.5 kB / 0.5916 GB, free: 70.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006959/1.016, allocations: 3.199 MB / 0.5947 GB, free: 70.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007252/1.024, allocations: 3.827 MB / 0.5985 GB, free: 70.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.76e-05/1.024, allocations: 8 kB / 0.5985 GB, free: 70.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/1.024, allocations: 6 kB / 0.5985 GB, free: 70.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/1.024, allocations: 158.4 kB / 0.5986 GB, free: 70.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02088/1.045, allocations: 14.08 MB / 0.6124 GB, free: 66.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004863/1.05, allocations: 5.597 MB / 0.6178 GB, free: 62.42 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002981/1.053, allocations: 1.54 MB / 0.6194 GB, free: 62.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008077/1.061, allocations: 4.246 MB / 0.6235 GB, free: 61.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/1.061, allocations: 47.31 kB / 0.6235 GB, free: 61.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.327e-06/1.061, allocations: 0 / 0.6235 GB, free: 61.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.009625/1.071, allocations: 4.572 MB / 0.628 GB, free: 59.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/1.071, allocations: 70.06 kB / 0.6281 GB, free: 59.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0027/1.074, allocations: 1.556 MB / 0.6296 GB, free: 59.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/1.074, allocations: 26.86 kB / 0.6296 GB, free: 59.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/1.075, allocations: 1.663 MB / 0.6312 GB, free: 57.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003783/1.075, allocations: 462.5 kB / 0.6317 GB, free: 57.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.043e-05/1.075, allocations: 2.719 kB / 0.6317 GB, free: 57.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/1.075, allocations: 379 kB / 0.632 GB, free: 57.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/1.076, allocations: 0.6852 MB / 0.6327 GB, free: 56.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/1.078, allocations: 1.287 MB / 0.634 GB, free: 55.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002001/1.08, allocations: 1.052 MB / 0.635 GB, free: 55.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/1.08, allocations: 5.031 kB / 0.635 GB, free: 55.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.004433/1.084, allocations: 2.496 MB / 0.6374 GB, free: 54.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/1.084, allocations: 17.3 kB / 0.6375 GB, free: 54.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.405e-05/1.084, allocations: 19.56 kB / 0.6375 GB, free: 54.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000455/1.085, allocations: 191.2 kB / 0.6377 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/1.086, allocations: 458.4 kB / 0.6381 GB, free: 54.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/1.088, allocations: 3.364 MB / 0.6414 GB, free: 51.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/1.09, allocations: 83.28 kB / 0.6415 GB, free: 51.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/1.09, allocations: 88.59 kB / 0.6415 GB, free: 51.45 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 (226): * Single equations (assignments): 223 * 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.000275/1.091, allocations: 170 kB / 0.6417 GB, free: 51.32 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003189/1.094, allocations: 2.107 MB / 0.6438 GB, free: 50.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/1.094, allocations: 207 kB / 0.644 GB, free: 50.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003552/1.098, allocations: 2.268 MB / 0.6462 GB, free: 49.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/1.098, allocations: 11.91 kB / 0.6462 GB, free: 49.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/1.098, allocations: 5.656 kB / 0.6462 GB, free: 49.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/1.098, allocations: 7.734 kB / 0.6462 GB, free: 49.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008362/1.106, allocations: 4.925 MB / 0.651 GB, free: 47.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/1.106, allocations: 3.875 kB / 0.651 GB, free: 47.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009826/1.107, allocations: 241.1 kB / 0.6512 GB, free: 47.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000685/1.108, allocations: 318.8 kB / 0.6516 GB, free: 46.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.64e-05/1.108, allocations: 11.62 kB / 0.6516 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004938/1.113, allocations: 7.255 MB / 0.6586 GB, free: 40.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.113, allocations: 3.906 kB / 0.6587 GB, free: 40.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00484/1.118, allocations: 3.469 MB / 0.662 GB, free: 38.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000979/1.119, allocations: 460.1 kB / 0.6625 GB, free: 38.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/1.119, allocations: 11.73 kB / 0.6625 GB, free: 38.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009393/1.12, allocations: 67.03 kB / 0.6626 GB, free: 38.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/1.12, allocations: 88.83 kB / 0.6626 GB, free: 38.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.671e-05/1.12, allocations: 37.72 kB / 0.6627 GB, free: 38.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001673/1.122, allocations: 1.159 MB / 0.6638 GB, free: 38.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.122, allocations: 0 / 0.6638 GB, free: 38.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00247/1.124, allocations: 0.548 MB / 0.6643 GB, free: 38.01 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 (111): * Single equations (assignments): 107 * 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.005083/1.129, allocations: 4.886 MB / 0.6691 GB, free: 35.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002545/1.132, allocations: 2.033 MB / 0.6711 GB, free: 34.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/1.132, allocations: 1.812 kB / 0.6711 GB, free: 34.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/1.133, allocations: 1.362 MB / 0.6724 GB, free: 33.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/1.135, allocations: 446.4 kB / 0.6729 GB, free: 33.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009028/1.144, allocations: 5.621 MB / 0.6783 GB, free: 30.95 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001712/1.146, allocations: 2.49 MB / 0.6808 GB, free: 29.87 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001525/1.148, allocations: 0.493 MB / 0.6813 GB, free: 29.81 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/1.149, allocations: 1.301 MB / 0.6825 GB, free: 28.73 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/1.149, allocations: 0 / 0.6825 GB, free: 28.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.083/1.232, allocations: 47.61 MB / 0.729 GB, free: 5.52 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001594/1.232, allocations: 196.4 kB / 0.7292 GB, free: 5.324 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.348/4.58, allocations: 0 / 0.7292 GB, free: 5.324 MB / 442.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