Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.002576/0.002581, allocations: 181 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.199/2.199, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001136/0.001136, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.224e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1026, allocations: 47.56 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.468/0.5706, allocations: 113.3 MB / 482.5 MB, free: 12.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/0.571, allocations: 85.83 kB / 482.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8452/1.416, allocations: 159.4 MB / 0.6269 GB, free: 55.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.416, allocations: 0 / 0.6269 GB, free: 55.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006857/1.417, allocations: 163.8 kB / 0.6271 GB, free: 55.27 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.0276/1.445, allocations: 6.427 MB / 0.6333 GB, free: 48.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/1.445, allocations: 11.97 kB / 0.6333 GB, free: 48.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003957/1.449, allocations: 0.9586 MB / 0.6343 GB, free: 47.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01246/1.461, allocations: 1.529 MB / 0.6358 GB, free: 46.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02043/1.482, allocations: 5.727 MB / 0.6414 GB, free: 40.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006771/1.482, allocations: 0.5138 MB / 0.6419 GB, free: 39.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002974/1.485, allocations: 0.6834 MB / 0.6425 GB, free: 39.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0303/1.516, allocations: 9.054 MB / 0.6514 GB, free: 29.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003787/1.516, allocations: 3.906 kB / 0.6514 GB, free: 29.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002456/1.519, allocations: 300 kB / 0.6517 GB, free: 29.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003815/1.519, allocations: 322.1 kB / 0.652 GB, free: 29.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02415/1.543, allocations: 7.335 MB / 0.6591 GB, free: 22.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07949/1.623, allocations: 28.84 MB / 0.6873 GB, free: 8.539 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3469/1.97, allocations: 16.44 MB / 0.7034 GB, free: 56.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008681/1.978, allocations: 2.857 MB / 0.7061 GB, free: 56.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02473/2.003, allocations: 7.715 MB / 0.7137 GB, free: 56.03 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/2.003, allocations: 69.17 kB / 0.7137 GB, free: 55.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 6.051e-06/2.003, allocations: 0 / 0.7137 GB, free: 55.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=260): time 0.02358/2.027, allocations: 7.75 MB / 0.7213 GB, free: 54.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/2.027, allocations: 78.2 kB / 0.7214 GB, free: 54.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008973/2.036, allocations: 2.919 MB / 0.7242 GB, free: 54.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006233/2.037, allocations: 72.92 kB / 0.7243 GB, free: 54.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002659/2.039, allocations: 2.864 MB / 0.7271 GB, free: 52.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001449/2.041, allocations: 0.8956 MB / 0.728 GB, free: 52.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003559/2.041, allocations: 68.88 kB / 0.728 GB, free: 52.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002771/2.042, allocations: 444.1 kB / 0.7285 GB, free: 51.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003542/2.045, allocations: 1.297 MB / 0.7297 GB, free: 51.97 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004504/2.05, allocations: 2.324 MB / 0.732 GB, free: 50.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005319/2.055, allocations: 1.75 MB / 0.7337 GB, free: 50.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.525e-05/2.055, allocations: 11.41 kB / 0.7337 GB, free: 50.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01171/2.067, allocations: 4.271 MB / 0.7379 GB, free: 50.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-05/2.067, allocations: 18.53 kB / 0.7379 GB, free: 50.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-05/2.067, allocations: 36.91 kB / 0.7379 GB, free: 50.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/2.069, allocations: 412.5 kB / 0.7383 GB, free: 50.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005969/2.075, allocations: 0.7933 MB / 0.7391 GB, free: 50.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008155/2.083, allocations: 7.309 MB / 0.7463 GB, free: 45.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004887/2.088, allocations: 168.6 kB / 0.7464 GB, free: 45.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008177/2.089, allocations: 147.5 kB / 0.7466 GB, free: 45.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (406): * Single equations (assignments): 400 * 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,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008222/2.089, allocations: 317.2 kB / 0.7469 GB, free: 45.01 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/2.091, allocations: 365.2 kB / 0.7472 GB, free: 44.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/2.102, allocations: 4.037 MB / 0.7511 GB, free: 44.35 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-05/2.102, allocations: 28 kB / 0.7512 GB, free: 44.35 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.92e-05/2.102, allocations: 12.56 kB / 0.7512 GB, free: 44.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.178e-05/2.102, allocations: 14.25 kB / 0.7512 GB, free: 44.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02889/2.131, allocations: 9.661 MB / 0.7606 GB, free: 41.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-05/2.131, allocations: 7.875 kB / 0.7606 GB, free: 41.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003707/2.135, allocations: 401 kB / 0.761 GB, free: 41.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003793/2.139, allocations: 0.8443 MB / 0.7619 GB, free: 40.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008005/2.14, allocations: 71 kB / 0.7619 GB, free: 40.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02246/2.162, allocations: 15.99 MB / 0.7775 GB, free: 28.22 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/2.162, allocations: 5.281 kB / 0.7775 GB, free: 28.22 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01504/2.177, allocations: 6.106 MB / 0.7835 GB, free: 25.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002926/2.18, allocations: 0.7402 MB / 0.7842 GB, free: 24.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001322/2.182, allocations: 65.2 kB / 0.7843 GB, free: 24.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003741/2.185, allocations: 146.7 kB / 0.7844 GB, free: 24.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007085/2.186, allocations: 207.9 kB / 0.7846 GB, free: 24.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/2.186, allocations: 72.8 kB / 0.7847 GB, free: 24.42 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005225/2.192, allocations: 2.21 MB / 0.7869 GB, free: 23.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.72e-07/2.192, allocations: 0 / 0.7869 GB, free: 23.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00678/2.199, allocations: 1.189 MB / 0.788 GB, free: 23.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (194): * Single equations (assignments): 187 * 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%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01563/2.214, allocations: 7.975 MB / 0.7958 GB, free: 18.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008954/2.223, allocations: 3.913 MB / 0.7996 GB, free: 16.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.978e-06/2.223, allocations: 0.75 kB / 0.7996 GB, free: 16.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006539/2.23, allocations: 2.769 MB / 0.8023 GB, free: 15.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007254/2.237, allocations: 0.9234 MB / 0.8032 GB, free: 15.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03405/2.271, allocations: 11.55 MB / 0.8145 GB, free: 5.828 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006787/2.278, allocations: 4.242 MB / 0.8186 GB, free: 2.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00583/2.284, allocations: 2.554 MB / 0.8211 GB, free: 300 kB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/2.284, allocations: 0 / 0.8211 GB, free: 300 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.012/8.296, allocations: 321.7 MB / 1.135 GB, free: 67.56 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat