Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",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.001503/0.001503, allocations: 182.4 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.073/2.073, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001111/0.00111, allocations: 89.98 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.365e-05, allocations: 7.938 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09722, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5492, allocations: 105.4 MB / 474.6 MB, free: 4.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.5496, allocations: 84.58 kB / 474.6 MB, free: 4.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2081/0.7577, allocations: 46.13 MB / 0.5086 GB, free: 7.223 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.7577, allocations: 0 / 0.5086 GB, free: 7.223 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002824/0.758, allocations: 63.92 kB / 0.5086 GB, free: 7.16 MB / 394.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.009087/0.7671, allocations: 2.251 MB / 0.5108 GB, free: 4.852 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.7672, allocations: 8.031 kB / 0.5108 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001321/0.7686, allocations: 316 kB / 0.5111 GB, free: 4.523 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00183/0.7704, allocations: 300.7 kB / 0.5114 GB, free: 4.227 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006275/0.7767, allocations: 1.588 MB / 0.513 GB, free: 2.578 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002726/0.7771, allocations: 164.2 kB / 0.5131 GB, free: 2.414 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009611/0.778, allocations: 204.7 kB / 0.5133 GB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009563/0.7876, allocations: 2.718 MB / 0.516 GB, free: 15.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/0.7878, allocations: 7.906 kB / 0.516 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000538/0.7883, allocations: 91.98 kB / 0.5161 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001827/0.7885, allocations: 100.2 kB / 0.5162 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007723/0.7963, allocations: 2.133 MB / 0.5183 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02677/0.8231, allocations: 8.624 MB / 0.5267 GB, free: 4.133 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004252/0.8274, allocations: 1.686 MB / 0.5283 GB, free: 2.316 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002419/0.8299, allocations: 0.7849 MB / 0.5291 GB, free: 1.535 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005483/0.8305, allocations: 219.1 kB / 0.5293 GB, free: 1.285 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.8306, allocations: 51.56 kB / 0.5294 GB, free: 1.227 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 4.458e-06/0.8306, allocations: 0 / 0.5294 GB, free: 1.227 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.3012/1.132, allocations: 5.928 MB / 0.5351 GB, free: 103.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/1.132, allocations: 65.81 kB / 0.5352 GB, free: 103.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/1.135, allocations: 1.232 MB / 0.5364 GB, free: 103 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000342/1.136, allocations: 49.33 kB / 0.5365 GB, free: 102.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009532/1.137, allocations: 0.9912 MB / 0.5374 GB, free: 102.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007144/1.137, allocations: 439.2 kB / 0.5378 GB, free: 102.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/1.137, allocations: 30 kB / 0.5379 GB, free: 102.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/1.138, allocations: 369.2 kB / 0.5382 GB, free: 102 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001897/1.14, allocations: 0.6972 MB / 0.5389 GB, free: 102 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002418/1.142, allocations: 1.071 MB / 0.5399 GB, free: 101.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002447/1.145, allocations: 0.8741 MB / 0.5408 GB, free: 101.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.647e-05/1.145, allocations: 2.75 kB / 0.5408 GB, free: 101.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.007642/1.152, allocations: 2.401 MB / 0.5431 GB, free: 101.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.998e-05/1.152, allocations: 14.69 kB / 0.5432 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.551e-05/1.152, allocations: 11.59 kB / 0.5432 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002735/1.155, allocations: 0.5846 MB / 0.5437 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/1.158, allocations: 339 kB / 0.5441 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/1.17, allocations: 6.306 MB / 0.5502 GB, free: 98.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002422/1.173, allocations: 116.5 kB / 0.5503 GB, free: 98.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002666/1.173, allocations: 63.42 kB / 0.5504 GB, free: 98.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 154 * 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,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004362/1.173, allocations: 182.8 kB / 0.5506 GB, free: 98.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005201/1.174, allocations: 159.8 kB / 0.5507 GB, free: 98.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006125/1.18, allocations: 2.291 MB / 0.553 GB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/1.18, allocations: 11.75 kB / 0.553 GB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/1.18, allocations: 3.969 kB / 0.553 GB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.275e-05/1.18, allocations: 9.656 kB / 0.553 GB, free: 98.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/1.194, allocations: 4.691 MB / 0.5576 GB, free: 96.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/1.194, allocations: 3.344 kB / 0.5576 GB, free: 96.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/1.196, allocations: 216.1 kB / 0.5578 GB, free: 96.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002942/1.198, allocations: 0.6434 MB / 0.5584 GB, free: 96.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002957/1.199, allocations: 31.58 kB / 0.5584 GB, free: 96.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.212, allocations: 8.045 MB / 0.5663 GB, free: 91.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.212, allocations: 8.875 kB / 0.5663 GB, free: 91.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008043/1.22, allocations: 3.406 MB / 0.5696 GB, free: 89.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/1.222, allocations: 393.1 kB / 0.57 GB, free: 89.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005244/1.222, allocations: 32.59 kB / 0.57 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002094/1.224, allocations: 96.88 kB / 0.5701 GB, free: 89.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004703/1.225, allocations: 100.4 kB / 0.5702 GB, free: 89.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/1.225, allocations: 40.55 kB / 0.5703 GB, free: 89.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002101/1.227, allocations: 0.9425 MB / 0.5712 GB, free: 88.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.227, allocations: 0 / 0.5712 GB, free: 88.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002843/1.23, allocations: 0.5257 MB / 0.5717 GB, free: 88.69 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (98): * Single equations (assignments): 95 * 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.009044/1.239, allocations: 4.758 MB / 0.5763 GB, free: 86.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005987/1.245, allocations: 2.259 MB / 0.5785 GB, free: 85.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/1.245, allocations: 3.844 kB / 0.5785 GB, free: 85.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004064/1.249, allocations: 1.47 MB / 0.58 GB, free: 84.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003352/1.253, allocations: 373.9 kB / 0.5803 GB, free: 84.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/1.266, allocations: 4.317 MB / 0.5846 GB, free: 82.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/1.268, allocations: 1.843 MB / 0.5864 GB, free: 81.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/1.27, allocations: 0.8288 MB / 0.5872 GB, free: 80.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.864e-06/1.27, allocations: 0 / 0.5872 GB, free: 80.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.817/5.087, allocations: 68.13 MB / 0.6537 GB, free: 23.89 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat