Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.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.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",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.001191/0.001191, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 221.5 MB / 230.3 MB, free: 7.598 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009933/0.0009931, allocations: 88.14 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.948e-05, allocations: 4 kB / 337.2 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.42/0.5337, allocations: 118.9 MB / 0.4946 GB, free: 7.746 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.5341, allocations: 99.94 kB / 0.4947 GB, free: 7.648 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6316/1.166, allocations: 167.6 MB / 0.6583 GB, free: 47.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.961e-06/1.166, allocations: 0 / 0.6583 GB, free: 47.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00121/1.167, allocations: 167.8 kB / 0.6585 GB, free: 47.66 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02598/1.193, allocations: 6.706 MB / 0.6651 GB, free: 40.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/1.193, allocations: 19.91 kB / 0.6651 GB, free: 40.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01121/1.204, allocations: 1.603 MB / 0.6666 GB, free: 39.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01634/1.221, allocations: 5.945 MB / 0.6724 GB, free: 33.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00047/1.221, allocations: 236 kB / 0.6727 GB, free: 33.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002915/1.224, allocations: 427.8 kB / 0.6731 GB, free: 32.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01722/1.241, allocations: 7.121 MB / 0.68 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02524/1.267, allocations: 8.294 MB / 0.6881 GB, free: 17.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004369/1.267, allocations: 11.84 kB / 0.6881 GB, free: 17.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002753/1.27, allocations: 11.94 kB / 0.6882 GB, free: 17.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003352/1.27, allocations: 342.6 kB / 0.6885 GB, free: 16.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3646/1.635, allocations: 29.21 MB / 0.717 GB, free: 45.53 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/1.65, allocations: 15.86 MB / 0.7325 GB, free: 33.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005921/1.656, allocations: 2.937 MB / 0.7354 GB, free: 33.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01686/1.673, allocations: 8.006 MB / 0.7432 GB, free: 32.69 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.777e-05/1.673, allocations: 67.83 kB / 0.7433 GB, free: 32.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=288): time 6.723e-06/1.673, allocations: 0 / 0.7433 GB, free: 32.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=296): time 0.01741/1.691, allocations: 8.863 MB / 0.7519 GB, free: 31.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/1.691, allocations: 82.89 kB / 0.752 GB, free: 30.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004299/1.695, allocations: 2.518 MB / 0.7544 GB, free: 30.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005296/1.695, allocations: 25.7 kB / 0.7545 GB, free: 30.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001679/1.697, allocations: 3.196 MB / 0.7576 GB, free: 29.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009147/1.698, allocations: 0.9725 MB / 0.7585 GB, free: 28.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/1.698, allocations: 0 / 0.7585 GB, free: 28.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/1.698, allocations: 456.6 kB / 0.759 GB, free: 28.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/1.7, allocations: 1.347 MB / 0.7603 GB, free: 28.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/1.702, allocations: 2.44 MB / 0.7627 GB, free: 27.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00365/1.706, allocations: 2.134 MB / 0.7648 GB, free: 27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.785e-05/1.706, allocations: 7.812 kB / 0.7648 GB, free: 27 MB / 426.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.009419/1.715, allocations: 4.775 MB / 0.7694 GB, free: 26.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.05e-05/1.716, allocations: 24.12 kB / 0.7695 GB, free: 26.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.545e-05/1.716, allocations: 34.44 kB / 0.7695 GB, free: 26.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009385/1.717, allocations: 387.1 kB / 0.7699 GB, free: 26.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003732/1.72, allocations: 0.8738 MB / 0.7707 GB, free: 26.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00501/1.725, allocations: 7.035 MB / 0.7776 GB, free: 21.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003593/1.729, allocations: 106.4 kB / 0.7777 GB, free: 21.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006527/1.73, allocations: 170.3 kB / 0.7778 GB, free: 21.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (454): * Single equations (assignments): 448 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000611/1.73, allocations: 216 kB / 0.778 GB, free: 21.41 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006915/1.737, allocations: 4.082 MB / 0.782 GB, free: 19.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/1.738, allocations: 361.6 kB / 0.7824 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007571/1.746, allocations: 4.408 MB / 0.7867 GB, free: 17.65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.199e-05/1.746, allocations: 34.48 kB / 0.7867 GB, free: 17.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/1.746, allocations: 13.56 kB / 0.7867 GB, free: 17.64 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.001e-05/1.746, allocations: 14.77 kB / 0.7867 GB, free: 17.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01729/1.763, allocations: 9.538 MB / 0.7961 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/1.763, allocations: 3.875 kB / 0.7961 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/1.765, allocations: 458.4 kB / 0.7965 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002203/1.768, allocations: 0.8656 MB / 0.7973 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004613/1.768, allocations: 36.55 kB / 0.7974 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0135/1.782, allocations: 15.72 MB / 0.8127 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.244e-05/1.782, allocations: 11.94 kB / 0.8127 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/1.795, allocations: 6.836 MB / 0.8194 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002217/1.798, allocations: 0.7569 MB / 0.8202 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/1.799, allocations: 20.88 kB / 0.8202 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002571/1.801, allocations: 114.6 kB / 0.8203 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006878/1.802, allocations: 216.1 kB / 0.8205 GB, free: 13.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/1.802, allocations: 87.38 kB / 0.8206 GB, free: 13.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004003/1.806, allocations: 1.853 MB / 0.8224 GB, free: 12.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.806, allocations: 3.312 kB / 0.8224 GB, free: 12.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00633/1.813, allocations: 1.124 MB / 0.8235 GB, free: 12.53 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 216 * 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,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01294/1.826, allocations: 8.615 MB / 0.8319 GB, free: 5.637 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006322/1.832, allocations: 4.005 MB / 0.8358 GB, free: 1.902 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/1.832, allocations: 4 kB / 0.8358 GB, free: 1.898 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004439/1.836, allocations: 2.812 MB / 0.8386 GB, free: 15.28 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004918/1.841, allocations: 0.7583 MB / 0.8393 GB, free: 14.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03216/1.873, allocations: 11.71 MB / 0.8507 GB, free: 4.438 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006151/1.88, allocations: 4.475 MB / 0.8551 GB, free: 1.09 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003864/1.884, allocations: 0.8444 MB / 0.8559 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009173/1.893, allocations: 3.007 MB / 0.8589 GB, free: 15.39 MB / 474.7 MB Notification: Performance of SimCode: time 9.81e-07/1.893, allocations: 0 / 0.8589 GB, free: 15.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4833/2.376, allocations: 91.65 MB / 0.9484 GB, free: 85.46 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/2.376, allocations: 225.6 kB / 0.9486 GB, free: 85.18 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.942/7.318, allocations: 0 / 0.9486 GB, free: 85.18 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat