Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.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.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.003011/0.003011, allocations: 193.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.455/1.455, allocations: 225.6 MB / 234.8 MB, free: 3.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009269/0.0009269, allocations: 91.64 kB / 286.7 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.645e-05/2.653e-05, allocations: 4 kB / 343.8 MB, free: 8.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 51.48 MB / 395.3 MB, free: 4.617 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.5179, allocations: 120 MB / 0.5032 GB, free: 5.531 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.5182, allocations: 101.7 kB / 0.5033 GB, free: 5.477 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6653/1.183, allocations: 173.5 MB / 0.6727 GB, free: 58.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.184, allocations: 0 / 0.6727 GB, free: 58.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007978/1.184, allocations: 183.8 kB / 0.6729 GB, free: 58.41 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.0232/1.208, allocations: 6.744 MB / 0.6795 GB, free: 54.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/1.208, allocations: 11.44 kB / 0.6795 GB, free: 54.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01106/1.219, allocations: 1.599 MB / 0.681 GB, free: 53.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01755/1.236, allocations: 5.996 MB / 0.6869 GB, free: 49.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005174/1.237, allocations: 233.8 kB / 0.6871 GB, free: 49.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002955/1.24, allocations: 430.1 kB / 0.6875 GB, free: 49.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01767/1.257, allocations: 7.118 MB / 0.6945 GB, free: 45.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02716/1.285, allocations: 8.302 MB / 0.7026 GB, free: 37.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004475/1.285, allocations: 15.83 kB / 0.7026 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002717/1.288, allocations: 11.98 kB / 0.7026 GB, free: 37.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003453/1.288, allocations: 338.7 kB / 0.7029 GB, free: 37.24 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06136/1.35, allocations: 29.57 MB / 0.7318 GB, free: 7.148 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3607/1.71, allocations: 17.01 MB / 0.7484 GB, free: 40.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008185/1.719, allocations: 4.198 MB / 0.7525 GB, free: 40.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01619/1.735, allocations: 9.257 MB / 0.7616 GB, free: 39.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/1.735, allocations: 69.73 kB / 0.7616 GB, free: 39.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=288): time 6.943e-06/1.735, allocations: 0 / 0.7616 GB, free: 39.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=296): time 0.02442/1.759, allocations: 9.783 MB / 0.7712 GB, free: 37.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/1.76, allocations: 84.02 kB / 0.7713 GB, free: 37.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/1.765, allocations: 2.535 MB / 0.7737 GB, free: 37.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006735/1.765, allocations: 28.92 kB / 0.7738 GB, free: 37.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001952/1.767, allocations: 3.208 MB / 0.7769 GB, free: 36.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/1.768, allocations: 0.9747 MB / 0.7779 GB, free: 35.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/1.769, allocations: 4.156 kB / 0.7779 GB, free: 35.37 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/1.769, allocations: 453.4 kB / 0.7783 GB, free: 35.06 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/1.771, allocations: 1.398 MB / 0.7797 GB, free: 35.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002473/1.773, allocations: 2.488 MB / 0.7821 GB, free: 33.78 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005504/1.779, allocations: 2.376 MB / 0.7844 GB, free: 33.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.035e-05/1.779, allocations: 12.62 kB / 0.7844 GB, free: 33.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01154/1.791, allocations: 5.247 MB / 0.7895 GB, free: 33.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.846e-05/1.791, allocations: 19.47 kB / 0.7896 GB, free: 33.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.984e-05/1.791, allocations: 38.52 kB / 0.7896 GB, free: 33.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/1.792, allocations: 0.5451 MB / 0.7901 GB, free: 33.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003639/1.796, allocations: 0.8692 MB / 0.791 GB, free: 33.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007322/1.803, allocations: 8.307 MB / 0.7991 GB, free: 28.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003974/1.807, allocations: 116 kB / 0.7992 GB, free: 28.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008756/1.808, allocations: 162.6 kB / 0.7994 GB, free: 28.21 MB / 442.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 (449): * Single equations (assignments): 443 * 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%) 8,(1,100.0%) 1,(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001375/1.809, allocations: 214.1 kB / 0.7996 GB, free: 28.08 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01023/1.82, allocations: 4.549 MB / 0.804 GB, free: 27.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.821, allocations: 360.3 kB / 0.8043 GB, free: 27.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/1.831, allocations: 4.887 MB / 0.8091 GB, free: 26.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/1.831, allocations: 28.97 kB / 0.8091 GB, free: 26.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.156e-05/1.831, allocations: 17.17 kB / 0.8092 GB, free: 26.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.226e-05/1.831, allocations: 18.3 kB / 0.8092 GB, free: 26.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02451/1.855, allocations: 10.18 MB / 0.8191 GB, free: 22.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/1.855, allocations: 2.625 kB / 0.8191 GB, free: 22.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/1.858, allocations: 460.7 kB / 0.8196 GB, free: 22.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/1.86, allocations: 1.022 MB / 0.8206 GB, free: 22.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003978/1.86, allocations: 38.42 kB / 0.8206 GB, free: 22.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01635/1.877, allocations: 16.95 MB / 0.8372 GB, free: 25.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/1.877, allocations: 9.844 kB / 0.8372 GB, free: 25.35 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/1.89, allocations: 7.27 MB / 0.8443 GB, free: 21.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002415/1.892, allocations: 0.7718 MB / 0.845 GB, free: 21.21 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/1.894, allocations: 20.95 kB / 0.845 GB, free: 21.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002697/1.896, allocations: 114.9 kB / 0.8452 GB, free: 21.19 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006757/1.897, allocations: 218.2 kB / 0.8454 GB, free: 21.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000321/1.897, allocations: 90.28 kB / 0.8454 GB, free: 21.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004054/1.901, allocations: 1.872 MB / 0.8473 GB, free: 20.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.901, allocations: 0 / 0.8473 GB, free: 20.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006697/1.908, allocations: 1.147 MB / 0.8484 GB, free: 20.33 MB / 458.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 (220): * Single equations (assignments): 213 * 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%) 8,(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.01436/1.923, allocations: 9.198 MB / 0.8574 GB, free: 15.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006458/1.929, allocations: 4.184 MB / 0.8615 GB, free: 13.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/1.929, allocations: 0 / 0.8615 GB, free: 13.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004449/1.934, allocations: 2.895 MB / 0.8643 GB, free: 11.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005024/1.939, allocations: 0.7628 MB / 0.865 GB, free: 11.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03292/1.972, allocations: 11.82 MB / 0.8766 GB, free: 4.621 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008695/1.98, allocations: 4.487 MB / 0.881 GB, free: 1.266 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004841/1.985, allocations: 0.835 MB / 0.8818 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01144/1.997, allocations: 3.095 MB / 0.8848 GB, free: 15.76 MB / 474.7 MB Notification: Performance of SimCode: time 1.263e-06/1.997, allocations: 0 / 0.8848 GB, free: 15.76 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4687/2.465, allocations: 93.71 MB / 0.9763 GB, free: 73.51 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/2.466, allocations: 222.2 kB / 0.9765 GB, free: 73.23 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.142/7.608, allocations: 0 / 0.9765 GB, free: 73.23 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat