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_Inverter.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_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",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.001101/0.001101, allocations: 180.5 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.33/1.33, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.001037/0.001037, allocations: 92 kB / 291.5 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002317, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2216, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.5592, allocations: 131.6 MB / 0.5206 GB, free: 94.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.5596, allocations: 100.6 kB / 0.5207 GB, free: 94.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.272/0.8316, allocations: 124.4 MB / 0.6422 GB, free: 1.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.8317, allocations: 0 / 0.6422 GB, free: 1.719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003961/0.8321, allocations: 139.8 kB / 0.6423 GB, free: 1.582 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01694/0.849, allocations: 5.663 MB / 0.6479 GB, free: 11.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.8491, allocations: 12.03 kB / 0.6479 GB, free: 11.83 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003057/0.8522, allocations: 0.7405 MB / 0.6486 GB, free: 11.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006439/0.8586, allocations: 1.012 MB / 0.6496 GB, free: 10.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/0.8719, allocations: 4.639 MB / 0.6541 GB, free: 5.344 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000498/0.8724, allocations: 406.8 kB / 0.6545 GB, free: 4.945 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002092/0.8745, allocations: 0.5233 MB / 0.655 GB, free: 4.422 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2582/1.133, allocations: 6.959 MB / 0.6618 GB, free: 43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001669/1.133, allocations: 9.219 kB / 0.6618 GB, free: 43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005936/1.134, allocations: 228.6 kB / 0.662 GB, free: 43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000178/1.134, allocations: 247.8 kB / 0.6623 GB, free: 42.99 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/1.145, allocations: 5.636 MB / 0.6678 GB, free: 42.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04121/1.186, allocations: 22.54 MB / 0.6898 GB, free: 38.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008201/1.194, allocations: 8.396 MB / 0.698 GB, free: 32.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/1.205, allocations: 5.342 MB / 0.7032 GB, free: 31.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/1.205, allocations: 59.66 kB / 0.7033 GB, free: 31.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=241): time 5.299e-06/1.205, allocations: 0 / 0.7033 GB, free: 31.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=269): time 0.02837/1.234, allocations: 13.02 MB / 0.716 GB, free: 29.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/1.234, allocations: 79.19 kB / 0.716 GB, free: 29.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006006/1.24, allocations: 2.751 MB / 0.7187 GB, free: 28.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006801/1.241, allocations: 75.36 kB / 0.7188 GB, free: 28.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/1.243, allocations: 2.463 MB / 0.7212 GB, free: 26.53 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00108/1.244, allocations: 0.9195 MB / 0.7221 GB, free: 25.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004587/1.244, allocations: 64.62 kB / 0.7222 GB, free: 25.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002583/1.244, allocations: 440.8 kB / 0.7226 GB, free: 25.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002551/1.247, allocations: 1.45 MB / 0.724 GB, free: 24.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002972/1.25, allocations: 2.41 MB / 0.7264 GB, free: 23.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003024/1.253, allocations: 1.858 MB / 0.7282 GB, free: 22.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-05/1.253, allocations: 7.312 kB / 0.7282 GB, free: 22.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.009272/1.262, allocations: 5.031 MB / 0.7331 GB, free: 20.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.24e-05/1.263, allocations: 26.94 kB / 0.7331 GB, free: 20.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.296e-05/1.263, allocations: 34 kB / 0.7332 GB, free: 20.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/1.264, allocations: 0.7212 MB / 0.7339 GB, free: 20.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00308/1.267, allocations: 0.7793 MB / 0.7346 GB, free: 20.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009085/1.276, allocations: 10 MB / 0.7444 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003759/1.28, allocations: 202.1 kB / 0.7446 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006659/1.281, allocations: 145.2 kB / 0.7447 GB, free: 12.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (389): * Single equations (assignments): 383 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003847/1.285, allocations: 1.576 MB / 0.7463 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.286, allocations: 362.3 kB / 0.7466 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008463/1.294, allocations: 4.51 MB / 0.751 GB, free: 9.965 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/1.295, allocations: 36.31 kB / 0.751 GB, free: 9.965 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.09e-05/1.295, allocations: 14.36 kB / 0.7511 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.742e-05/1.295, allocations: 11.02 kB / 0.7511 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01963/1.314, allocations: 9.735 MB / 0.7606 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/1.314, allocations: 7.281 kB / 0.7606 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/1.316, allocations: 449.2 kB / 0.761 GB, free: 5.832 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002508/1.319, allocations: 0.9712 MB / 0.762 GB, free: 5.539 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000343/1.319, allocations: 71.98 kB / 0.762 GB, free: 5.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01671/1.336, allocations: 16.3 MB / 0.7779 GB, free: 9.035 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.336, allocations: 7.25 kB / 0.778 GB, free: 9.035 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/1.348, allocations: 6.898 MB / 0.7847 GB, free: 5.004 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002817/1.351, allocations: 0.741 MB / 0.7854 GB, free: 4.324 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/1.352, allocations: 66.27 kB / 0.7855 GB, free: 4.266 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002781/1.355, allocations: 166.3 kB / 0.7856 GB, free: 4.145 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000614/1.356, allocations: 204.2 kB / 0.7858 GB, free: 4.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002877/1.356, allocations: 75.52 kB / 0.7859 GB, free: 3.949 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004872/1.361, allocations: 2.083 MB / 0.7879 GB, free: 2.207 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.361, allocations: 0 / 0.7879 GB, free: 2.207 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005969/1.367, allocations: 1.104 MB / 0.789 GB, free: 1.113 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (212): * Single equations (assignments): 205 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01442/1.381, allocations: 8.993 MB / 0.7978 GB, free: 8.746 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009068/1.391, allocations: 4.43 MB / 0.8021 GB, free: 4.691 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/1.391, allocations: 4 kB / 0.8021 GB, free: 4.688 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005392/1.396, allocations: 2.94 MB / 0.805 GB, free: 1.969 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005302/1.401, allocations: 0.8818 MB / 0.8059 GB, free: 1.281 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3319/1.733, allocations: 52.41 MB / 0.857 GB, free: 94.43 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00366/1.737, allocations: 3.531 MB / 0.8605 GB, free: 93.62 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003749/1.741, allocations: 0.8173 MB / 0.8613 GB, free: 93.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002894/1.744, allocations: 2.097 MB / 0.8633 GB, free: 93.59 MB / 490.7 MB Notification: Performance of SimCode: time 1.172e-06/1.744, allocations: 0 / 0.8633 GB, free: 93.59 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1497/1.893, allocations: 93.59 MB / 0.9547 GB, free: 62.52 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/1.894, allocations: 251.1 kB / 0.955 GB, free: 62.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.849/6.743, allocations: 6.406 kB / 0.955 GB, free: 62.19 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat