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.002315/0.002321, allocations: 182.5 kB / 16.4 MB, free: 5.75 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.447/2.447, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.00116/0.00116, allocations: 97.48 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004144/0.0004145, allocations: 11.98 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3313, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01176/0.3431, allocations: 7.776 MB / 382.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007424/0.3506, allocations: 3.047 MB / 385.5 MB, free: 36.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.3526, allocations: 44.31 kB / 385.5 MB, free: 36.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002512/0.3551, allocations: 0.5481 MB / 386 MB, free: 36.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003492/0.3587, allocations: 0.6572 MB / 386.7 MB, free: 35.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.3602, allocations: 253.6 kB / 387 MB, free: 35.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004293/0.3645, allocations: 1.664 MB / 388.6 MB, free: 34.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003737/0.3683, allocations: 1.493 MB / 390.1 MB, free: 33.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002482/0.3709, allocations: 0.8173 MB / 390.9 MB, free: 32.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003041/0.374, allocations: 1.07 MB / 392 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.3752, allocations: 132 kB / 392.1 MB, free: 31.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.3775, allocations: 199.9 kB / 392.3 MB, free: 31.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001925/0.3795, allocations: 0.6426 MB / 393 MB, free: 30.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002411/0.382, allocations: 0.4887 MB / 393.5 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00784/0.3899, allocations: 3.284 MB / 396.7 MB, free: 26.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.39, allocations: 0 / 396.7 MB, free: 26.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.39, allocations: 0 / 396.7 MB, free: 26.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001455/0.3902, allocations: 0 / 396.7 MB, free: 26.63 MB / 298.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.01058/0.4008, allocations: 2.48 MB / 399.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.4008, allocations: 12.03 kB / 399.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000793/0.4016, allocations: 315.9 kB / 399.5 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.4027, allocations: 296.8 kB / 399.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003669/0.4064, allocations: 1.386 MB / 401.2 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002192/0.4066, allocations: 168.2 kB / 401.4 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005776/0.4072, allocations: 207.9 kB / 401.6 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007271/0.4145, allocations: 2.772 MB / 404.4 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.577e-05/0.4147, allocations: 12 kB / 404.4 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003004/0.415, allocations: 95.88 kB / 404.5 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/0.4151, allocations: 104.2 kB / 404.6 MB, free: 18.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006987/0.4221, allocations: 2.351 MB / 406.9 MB, free: 16.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.4431, allocations: 8.585 MB / 415.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00374/0.4469, allocations: 1.73 MB / 417.2 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003794/0.4474, allocations: 199.2 kB / 417.4 MB, free: 5.301 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.4474, allocations: 43.56 kB / 417.5 MB, free: 5.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=101): time 3.627e-06/0.4474, allocations: 0 / 417.5 MB, free: 5.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=116): time 0.02106/0.4685, allocations: 6.084 MB / 423.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.4686, allocations: 64.41 kB / 423.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00314/0.4718, allocations: 1.39 MB / 425 MB, free: 13.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002698/0.4721, allocations: 45.64 kB / 425 MB, free: 13.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.4731, allocations: 1.003 MB / 426 MB, free: 12.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006404/0.4738, allocations: 402.2 kB / 426.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.474, allocations: 28 kB / 426.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002198/0.4742, allocations: 370.8 kB / 426.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.4764, allocations: 0.691 MB / 427.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002589/0.4791, allocations: 1.081 MB / 428.6 MB, free: 9.762 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002633/0.4817, allocations: 0.873 MB / 429.5 MB, free: 8.891 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.474e-05/0.4818, allocations: 4 kB / 429.5 MB, free: 8.887 MB / 314.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.007196/0.489, allocations: 2.316 MB / 431.8 MB, free: 6.531 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.806e-05/0.4891, allocations: 12 kB / 431.8 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.4891, allocations: 8 kB / 431.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001652/0.4908, allocations: 390.9 kB / 432.2 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002601/0.4934, allocations: 339.5 kB / 432.5 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.5042, allocations: 6.385 MB / 438.9 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/0.5064, allocations: 108 kB / 439 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002894/0.5067, allocations: 56 kB / 439.1 MB, free: 14.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (160): * Single equations (assignments): 156 * 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: 3 * 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: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002053/0.5088, allocations: 0.6886 MB / 439.8 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005632/0.5093, allocations: 162.1 kB / 439.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006687/0.516, allocations: 2.134 MB / 442.1 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.86e-05/0.5161, allocations: 12 kB / 442.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.5162, allocations: 7.938 kB / 442.1 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.255e-05/0.5162, allocations: 7.938 kB / 442.1 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/0.5301, allocations: 4.542 MB / 446.6 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/0.5301, allocations: 0 / 446.6 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/0.5321, allocations: 223.7 kB / 446.8 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/0.5342, allocations: 423.2 kB / 447.3 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002543/0.5345, allocations: 35.98 kB / 447.3 MB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01381/0.5483, allocations: 7.879 MB / 455.2 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/0.5484, allocations: 7.938 kB / 455.2 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009247/0.5577, allocations: 3.309 MB / 458.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/0.5591, allocations: 379 kB / 458.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004586/0.5596, allocations: 28 kB / 458.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/0.5613, allocations: 87.91 kB / 459 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.5617, allocations: 100.7 kB / 459.1 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/0.5619, allocations: 35.98 kB / 459.1 MB, free: 9.871 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002399/0.5643, allocations: 0.9457 MB / 460 MB, free: 8.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5644, allocations: 0 / 460 MB, free: 8.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002858/0.5672, allocations: 460.1 kB / 460.5 MB, free: 8.477 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01038/0.5777, allocations: 4.773 MB / 465.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006789/0.5845, allocations: 2.232 MB / 467.5 MB, free: 1.266 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.5846, allocations: 256 / 467.5 MB, free: 1.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004255/0.5888, allocations: 1.438 MB / 468.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003153/0.592, allocations: 380.5 kB / 469.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.044/0.6361, allocations: 20.98 MB / 490.3 MB, free: 9.699 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002655/0.6388, allocations: 1.831 MB / 492.1 MB, free: 7.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002021/0.6409, allocations: 0.8195 MB / 492.9 MB, free: 7.012 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6409, allocations: 0 / 492.9 MB, free: 7.012 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.195/4.836, allocations: 76.17 MB / 0.5558 GB, free: 77.64 MB / 394.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