Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.001533/0.001533, allocations: 176.2 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.4/1.4, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008021/0.0008021, allocations: 85.27 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.649e-05/1.66e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3718/0.4808, allocations: 105 MB / 492.6 MB, free: 5.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.4811, allocations: 80.98 kB / 492.6 MB, free: 5.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1211/0.6023, allocations: 45.74 MB / 0.5258 GB, free: 7.555 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6023, allocations: 0 / 0.5258 GB, free: 7.555 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000147/0.6025, allocations: 63.88 kB / 0.5258 GB, free: 7.492 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.004224/0.6067, allocations: 2.259 MB / 0.528 GB, free: 5.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.6068, allocations: 12.03 kB / 0.528 GB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007638/0.6075, allocations: 296.7 kB / 0.5283 GB, free: 4.871 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003577/0.6111, allocations: 1.596 MB / 0.5299 GB, free: 3.215 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.4e-05/0.6112, allocations: 72 kB / 0.53 GB, free: 3.145 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002726/0.6115, allocations: 124 kB / 0.5301 GB, free: 3.023 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003603/0.6151, allocations: 2.008 MB / 0.532 GB, free: 1.008 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003864/0.619, allocations: 2.392 MB / 0.5344 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.539e-05/0.6191, allocations: 15.89 kB / 0.5344 GB, free: 14.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/0.6192, allocations: 4 kB / 0.5344 GB, free: 14.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/0.6193, allocations: 96.19 kB / 0.5345 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01344/0.6328, allocations: 8.204 MB / 0.5425 GB, free: 5.926 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.635, allocations: 1.656 MB / 0.5441 GB, free: 4.152 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.6361, allocations: 0.7622 MB / 0.5449 GB, free: 3.387 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003618/0.6365, allocations: 219.5 kB / 0.5451 GB, free: 3.133 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.6365, allocations: 43.88 kB / 0.5451 GB, free: 3.082 MB / 426.7 MB Notification: Performance of pre-optimization done (n=106): time 2.836e-06/0.6366, allocations: 0 / 0.5451 GB, free: 3.082 MB / 426.7 MB Notification: Performance of matching and sorting (n=128): time 0.2737/0.9102, allocations: 4.776 MB / 0.5498 GB, free: 107.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.9103, allocations: 66.06 kB / 0.5498 GB, free: 107.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002356/0.9127, allocations: 1.025 MB / 0.5508 GB, free: 107.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.9129, allocations: 30.83 kB / 0.5509 GB, free: 107.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007531/0.9136, allocations: 1.027 MB / 0.5519 GB, free: 107.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004056/0.914, allocations: 430 kB / 0.5523 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/0.9141, allocations: 0 / 0.5523 GB, free: 106.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.9143, allocations: 363.7 kB / 0.5526 GB, free: 106.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.9154, allocations: 0.6733 MB / 0.5533 GB, free: 106.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.9167, allocations: 1.035 MB / 0.5543 GB, free: 106.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.9179, allocations: 0.8545 MB / 0.5551 GB, free: 106.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.9179, allocations: 4.625 kB / 0.5551 GB, free: 106.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004198/0.9221, allocations: 2.353 MB / 0.5574 GB, free: 106 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.9222, allocations: 10.22 kB / 0.5574 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.821e-05/0.9222, allocations: 15.45 kB / 0.5575 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/0.9238, allocations: 0.5747 MB / 0.558 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.9252, allocations: 341.7 kB / 0.5583 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007651/0.9328, allocations: 6.08 MB / 0.5643 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/0.9346, allocations: 85.3 kB / 0.5644 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.9348, allocations: 61.5 kB / 0.5644 GB, free: 103.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003267/0.9351, allocations: 140.8 kB / 0.5646 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003986/0.9391, allocations: 2.021 MB / 0.5665 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.9395, allocations: 146.8 kB / 0.5667 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00437/0.9438, allocations: 2.169 MB / 0.5688 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.9439, allocations: 16.47 kB / 0.5688 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/0.9439, allocations: 6.641 kB / 0.5688 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/0.9439, allocations: 5.953 kB / 0.5688 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008392/0.9523, allocations: 4.379 MB / 0.5731 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.9524, allocations: 0.5625 kB / 0.5731 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008629/0.9532, allocations: 220.1 kB / 0.5733 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.9547, allocations: 0.6371 MB / 0.5739 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/0.9548, allocations: 17.53 kB / 0.5739 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00688/0.9617, allocations: 7.734 MB / 0.5815 GB, free: 96.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.9617, allocations: 0 / 0.5815 GB, free: 96.61 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00472/0.9665, allocations: 3.331 MB / 0.5847 GB, free: 95.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008186/0.9673, allocations: 390 kB / 0.5851 GB, free: 94.85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.9675, allocations: 11.25 kB / 0.5851 GB, free: 94.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008367/0.9683, allocations: 78.14 kB / 0.5852 GB, free: 94.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.9686, allocations: 96.78 kB / 0.5853 GB, free: 94.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-05/0.9687, allocations: 45.95 kB / 0.5853 GB, free: 94.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001174/0.9699, allocations: 0.7646 MB / 0.5861 GB, free: 94.49 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9699, allocations: 0 / 0.5861 GB, free: 94.49 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001868/0.9717, allocations: 464.3 kB / 0.5865 GB, free: 94.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 97 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00466/0.9764, allocations: 4.757 MB / 0.5912 GB, free: 91.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003095/0.9795, allocations: 2.179 MB / 0.5933 GB, free: 90.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.9796, allocations: 9.969 kB / 0.5933 GB, free: 90.83 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.9815, allocations: 1.415 MB / 0.5947 GB, free: 90.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/0.9835, allocations: 298.6 kB / 0.595 GB, free: 90.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007572/0.9911, allocations: 4.163 MB / 0.599 GB, free: 88.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.9924, allocations: 1.865 MB / 0.6009 GB, free: 87.45 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001104/0.9935, allocations: 342.7 kB / 0.6012 GB, free: 87.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008412/0.9944, allocations: 0.8193 MB / 0.602 GB, free: 86.75 MB / 426.7 MB Notification: Performance of SimCode: time 6.01e-07/0.9944, allocations: 4 kB / 0.602 GB, free: 86.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06672/1.061, allocations: 37.78 MB / 0.6389 GB, free: 64.35 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/1.061, allocations: 163.1 kB / 0.639 GB, free: 64.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.95/4.012, allocations: 2.656 kB / 0.639 GB, free: 64.16 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat