Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.00195/0.00195, allocations: 181.3 kB / 16.39 MB, free: 5.766 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.288/1.288, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.000856/0.0008561, allocations: 91.52 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002611/0.0002611, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2307, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3377/0.5685, allocations: 126.2 MB / 0.5154 GB, free: 52.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.5687, allocations: 103.8 kB / 0.5155 GB, free: 52.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2561/0.8248, allocations: 116.2 MB / 0.629 GB, free: 5.324 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.8249, allocations: 3.938 kB / 0.629 GB, free: 5.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004604/0.8254, allocations: 131.8 kB / 0.6292 GB, free: 5.191 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01736/0.8427, allocations: 5.4 MB / 0.6344 GB, free: 15.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.8428, allocations: 8.031 kB / 0.6344 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00239/0.8452, allocations: 0.7115 MB / 0.6351 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005125/0.8503, allocations: 0.9534 MB / 0.6361 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/0.8631, allocations: 4.446 MB / 0.6404 GB, free: 9.496 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004276/0.8635, allocations: 386.2 kB / 0.6408 GB, free: 9.117 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001625/0.8652, allocations: 0.5037 MB / 0.6413 GB, free: 8.613 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01682/0.882, allocations: 6.685 MB / 0.6478 GB, free: 1.727 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000142/0.8822, allocations: 11.84 kB / 0.6478 GB, free: 1.715 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006532/0.8829, allocations: 227.9 kB / 0.648 GB, free: 1.492 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/0.8831, allocations: 234.2 kB / 0.6482 GB, free: 1.262 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/0.8947, allocations: 5.44 MB / 0.6536 GB, free: 11.81 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2302/1.125, allocations: 21.14 MB / 0.6742 GB, free: 54.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006516/1.131, allocations: 8.597 MB / 0.6826 GB, free: 48.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008664/1.14, allocations: 5.082 MB / 0.6876 GB, free: 47.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/1.14, allocations: 57.5 kB / 0.6876 GB, free: 47.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=222): time 4.518e-06/1.14, allocations: 0 / 0.6876 GB, free: 47.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=247): time 0.02274/1.163, allocations: 11.95 MB / 0.6993 GB, free: 45.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/1.163, allocations: 76.59 kB / 0.6994 GB, free: 45.85 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003432/1.167, allocations: 2.517 MB / 0.7018 GB, free: 45.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002974/1.167, allocations: 70.36 kB / 0.7019 GB, free: 45.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/1.168, allocations: 2.327 MB / 0.7042 GB, free: 44.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005756/1.169, allocations: 0.8503 MB / 0.705 GB, free: 44.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/1.169, allocations: 58.38 kB / 0.705 GB, free: 44.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/1.169, allocations: 426.2 kB / 0.7054 GB, free: 44.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001853/1.171, allocations: 1.37 MB / 0.7068 GB, free: 44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002074/1.173, allocations: 2.239 MB / 0.709 GB, free: 43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/1.175, allocations: 1.751 MB / 0.7107 GB, free: 42.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/1.175, allocations: 7.688 kB / 0.7107 GB, free: 42.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=390) (initialization): time 0.007057/1.182, allocations: 4.74 MB / 0.7153 GB, free: 42.51 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.876e-05/1.182, allocations: 18.34 kB / 0.7153 GB, free: 42.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.192e-05/1.182, allocations: 26.66 kB / 0.7154 GB, free: 42.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/1.184, allocations: 0.7266 MB / 0.7161 GB, free: 42.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002701/1.187, allocations: 0.7068 MB / 0.7168 GB, free: 42.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007827/1.194, allocations: 9.626 MB / 0.7262 GB, free: 37.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003106/1.198, allocations: 187.4 kB / 0.7263 GB, free: 37.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003998/1.198, allocations: 130.8 kB / 0.7265 GB, free: 37.29 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 122 * 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 (354): * Single equations (assignments): 348 * 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,75.0%) 22,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002843/1.201, allocations: 1.532 MB / 0.728 GB, free: 37.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008496/1.202, allocations: 323.2 kB / 0.7283 GB, free: 36.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006988/1.209, allocations: 4.281 MB / 0.7325 GB, free: 36.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.946e-05/1.209, allocations: 27.66 kB / 0.7325 GB, free: 36.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/1.209, allocations: 10.75 kB / 0.7325 GB, free: 36.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.231e-05/1.209, allocations: 14.27 kB / 0.7325 GB, free: 36.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/1.222, allocations: 9.157 MB / 0.7414 GB, free: 33.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/1.222, allocations: 3.906 kB / 0.7414 GB, free: 33.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/1.224, allocations: 406 kB / 0.7418 GB, free: 33.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002196/1.226, allocations: 0.9456 MB / 0.7428 GB, free: 33.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/1.226, allocations: 63.38 kB / 0.7428 GB, free: 33.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01249/1.239, allocations: 15.85 MB / 0.7583 GB, free: 21.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.239, allocations: 3.5 kB / 0.7583 GB, free: 21.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009073/1.248, allocations: 6.426 MB / 0.7646 GB, free: 17.99 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002139/1.25, allocations: 0.6879 MB / 0.7652 GB, free: 17.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007556/1.251, allocations: 58.11 kB / 0.7653 GB, free: 17.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/1.253, allocations: 155.4 kB / 0.7654 GB, free: 17.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000449/1.253, allocations: 186.6 kB / 0.7656 GB, free: 17.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/1.253, allocations: 76.44 kB / 0.7657 GB, free: 17.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003395/1.257, allocations: 1.911 MB / 0.7676 GB, free: 16.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/1.257, allocations: 0 / 0.7676 GB, free: 16.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004653/1.261, allocations: 1.024 MB / 0.7686 GB, free: 16.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (193): * Single equations (assignments): 186 * 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,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01012/1.272, allocations: 8.246 MB / 0.7766 GB, free: 12.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006201/1.278, allocations: 4.216 MB / 0.7807 GB, free: 10.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/1.278, allocations: 0 / 0.7807 GB, free: 10.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00399/1.282, allocations: 2.847 MB / 0.7835 GB, free: 8.695 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003895/1.286, allocations: 0.7843 MB / 0.7843 GB, free: 8.473 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06132/1.347, allocations: 47.88 MB / 0.831 GB, free: 9.883 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003477/1.351, allocations: 3.412 MB / 0.8344 GB, free: 7.301 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002901/1.354, allocations: 0.7558 MB / 0.8351 GB, free: 6.777 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002714/1.356, allocations: 1.94 MB / 0.837 GB, free: 4.984 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/1.356, allocations: 0 / 0.837 GB, free: 4.984 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3233/1.68, allocations: 86.11 MB / 0.9211 GB, free: 98.64 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/1.68, allocations: 257 kB / 0.9213 GB, free: 98.32 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.01/6.69, allocations: 0 / 0.9213 GB, free: 98.32 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat