Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009574/0.0009574, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.4 MB / 223.1 MB, free: 9.043 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009669/0.0009667, allocations: 100 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.000256, allocations: 8 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.2149, allocations: 47.57 MB / 375.9 MB, free: 45.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.3436, allocations: 118.9 MB / 494.8 MB, free: 9.711 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.3439, allocations: 87.95 kB / 494.9 MB, free: 9.625 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3561/0.7, allocations: 80.42 MB / 0.5618 GB, free: 56.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.7, allocations: 0 / 0.5618 GB, free: 56.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003567/0.7004, allocations: 91.88 kB / 0.5619 GB, free: 55.98 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.711, allocations: 3.857 MB / 0.5657 GB, free: 52.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.711, allocations: 8.031 kB / 0.5657 GB, free: 52.04 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001538/0.7126, allocations: 493.3 kB / 0.5661 GB, free: 51.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003219/0.7158, allocations: 0.6432 MB / 0.5668 GB, free: 50.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008725/0.7245, allocations: 3.398 MB / 0.5701 GB, free: 47.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.7248, allocations: 266.9 kB / 0.5703 GB, free: 47.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009847/0.7258, allocations: 344 kB / 0.5707 GB, free: 46.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009706/0.7355, allocations: 4.394 MB / 0.5749 GB, free: 42.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001358/0.7357, allocations: 19.78 kB / 0.575 GB, free: 42.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006787/0.7364, allocations: 144 kB / 0.5751 GB, free: 42.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001734/0.7366, allocations: 162.8 kB / 0.5753 GB, free: 41.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006542/0.7431, allocations: 3.525 MB / 0.5787 GB, free: 38.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02319/0.7663, allocations: 14.57 MB / 0.5929 GB, free: 23.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00444/0.7708, allocations: 5.389 MB / 0.5982 GB, free: 17.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005453/0.7763, allocations: 3.287 MB / 0.6014 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.7764, allocations: 51.81 kB / 0.6015 GB, free: 13.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=138): time 2.725e-06/0.7764, allocations: 0 / 0.6015 GB, free: 13.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.01231/0.7887, allocations: 7.139 MB / 0.6084 GB, free: 6.676 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.7888, allocations: 68.72 kB / 0.6085 GB, free: 6.594 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003305/0.7921, allocations: 1.849 MB / 0.6103 GB, free: 4.715 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.7922, allocations: 53.7 kB / 0.6104 GB, free: 4.656 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009145/0.7932, allocations: 1.627 MB / 0.6119 GB, free: 3.008 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003764/0.7935, allocations: 0.5661 MB / 0.6125 GB, free: 2.434 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.7937, allocations: 40 kB / 0.6125 GB, free: 2.395 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.7938, allocations: 389.9 kB / 0.6129 GB, free: 2.008 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.795, allocations: 0.8629 MB / 0.6137 GB, free: 1.141 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.7966, allocations: 1.465 MB / 0.6152 GB, free: 15.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.7984, allocations: 1.126 MB / 0.6163 GB, free: 14.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.592e-05/0.7984, allocations: 4 kB / 0.6163 GB, free: 14.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004965/0.8034, allocations: 2.981 MB / 0.6192 GB, free: 11.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.8034, allocations: 12 kB / 0.6192 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.038e-05/0.8034, allocations: 20 kB / 0.6192 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.8045, allocations: 443.5 kB / 0.6196 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.8063, allocations: 479.2 kB / 0.6201 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006527/0.8128, allocations: 5.67 MB / 0.6256 GB, free: 4.387 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.8149, allocations: 131.8 kB / 0.6258 GB, free: 4.258 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/0.8151, allocations: 87.98 kB / 0.6258 GB, free: 4.172 MB / 394.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.002363/0.8175, allocations: 1.067 MB / 0.6269 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005969/0.8181, allocations: 225.2 kB / 0.6271 GB, free: 2.871 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004834/0.8229, allocations: 2.64 MB / 0.6297 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.823, allocations: 19.98 kB / 0.6297 GB, free: 200 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.662e-05/0.823, allocations: 8 kB / 0.6297 GB, free: 192 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.823, allocations: 7.969 kB / 0.6297 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.8348, allocations: 6.124 MB / 0.6357 GB, free: 9.957 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.8349, allocations: 0 / 0.6357 GB, free: 9.957 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.836, allocations: 259.6 kB / 0.6359 GB, free: 9.703 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.8374, allocations: 0.5413 MB / 0.6365 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.8375, allocations: 39.98 kB / 0.6365 GB, free: 9.113 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009426/0.847, allocations: 8.507 MB / 0.6448 GB, free: 208 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.847, allocations: 4 kB / 0.6448 GB, free: 204 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2024/1.049, allocations: 4.027 MB / 0.6488 GB, free: 85.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/1.051, allocations: 0.5012 MB / 0.6492 GB, free: 85.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003498/1.051, allocations: 38.56 kB / 0.6493 GB, free: 85.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/1.052, allocations: 85.77 kB / 0.6494 GB, free: 85.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002834/1.053, allocations: 123.6 kB / 0.6495 GB, free: 85.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.998e-05/1.053, allocations: 42.05 kB / 0.6495 GB, free: 85.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001957/1.055, allocations: 1.407 MB / 0.6509 GB, free: 85.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.055, allocations: 0 / 0.6509 GB, free: 85.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002319/1.057, allocations: 0.6856 MB / 0.6516 GB, free: 85.16 MB / 410.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,voltageController.PI_d.x,voltageController.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 {(5,68.0%) 24,(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.005646/1.063, allocations: 5.439 MB / 0.6569 GB, free: 83.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003709/1.066, allocations: 2.707 MB / 0.6595 GB, free: 83.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/1.067, allocations: 0 / 0.6595 GB, free: 83.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002606/1.069, allocations: 1.72 MB / 0.6612 GB, free: 82.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002642/1.072, allocations: 0.5179 MB / 0.6617 GB, free: 82.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03508/1.107, allocations: 31.99 MB / 0.6929 GB, free: 62.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/1.109, allocations: 2.534 MB / 0.6954 GB, free: 62.13 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001949/1.111, allocations: 0.497 MB / 0.6959 GB, free: 62.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/1.113, allocations: 1.338 MB / 0.6972 GB, free: 62.05 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/1.113, allocations: 0 / 0.6972 GB, free: 62.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08257/1.195, allocations: 59.72 MB / 0.7555 GB, free: 25.12 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/1.195, allocations: 229.3 kB / 0.7558 GB, free: 24.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.251/4.446, allocations: 0 / 0.7558 GB, free: 24.88 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat