Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_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.001531/0.001531, allocations: 186.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.975/1.975, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001152/0.001152, allocations: 88.38 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.0004048, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3443, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.5163, allocations: 102.2 MB / 476.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003829/0.5168, allocations: 95.94 kB / 477 MB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4595/0.9763, allocations: 40.14 MB / 0.505 GB, free: 95.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.9764, allocations: 4 kB / 0.505 GB, free: 95.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001804/0.9766, allocations: 58.47 kB / 0.505 GB, free: 95.84 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.007884/0.9845, allocations: 2.14 MB / 0.5071 GB, free: 94.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.9846, allocations: 13.39 kB / 0.5071 GB, free: 94.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001156/0.9857, allocations: 267 kB / 0.5074 GB, free: 94.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.987, allocations: 253 kB / 0.5076 GB, free: 94.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004567/0.9916, allocations: 1.359 MB / 0.509 GB, free: 94.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.9918, allocations: 135.3 kB / 0.5091 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000697/0.9925, allocations: 178 kB / 0.5093 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006858/0.9994, allocations: 2.348 MB / 0.5116 GB, free: 93.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.9995, allocations: 11.66 kB / 0.5116 GB, free: 93.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002807/0.9998, allocations: 71.34 kB / 0.5116 GB, free: 93.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/1, allocations: 90.17 kB / 0.5117 GB, free: 93.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006308/1.006, allocations: 1.877 MB / 0.5136 GB, free: 92.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0183/1.025, allocations: 7.182 MB / 0.5206 GB, free: 89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003054/1.028, allocations: 1.321 MB / 0.5219 GB, free: 88.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003974/1.028, allocations: 130.4 kB / 0.522 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/1.028, allocations: 43.53 kB / 0.522 GB, free: 88.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=90): time 3.517e-06/1.028, allocations: 0 / 0.522 GB, free: 88.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=113): time 0.02766/1.056, allocations: 7.206 MB / 0.5291 GB, free: 84.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/1.056, allocations: 64.41 kB / 0.5291 GB, free: 84.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00227/1.058, allocations: 1.048 MB / 0.5302 GB, free: 83.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003062/1.059, allocations: 41.7 kB / 0.5302 GB, free: 83.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005489/1.059, allocations: 0.8349 MB / 0.531 GB, free: 82.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000441/1.06, allocations: 401 kB / 0.5314 GB, free: 82.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/1.06, allocations: 24 kB / 0.5314 GB, free: 82.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/1.06, allocations: 362.8 kB / 0.5318 GB, free: 81.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001781/1.062, allocations: 0.6819 MB / 0.5324 GB, free: 81.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001947/1.064, allocations: 0.9853 MB / 0.5334 GB, free: 80.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002135/1.066, allocations: 0.8267 MB / 0.5342 GB, free: 79.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/1.066, allocations: 4 kB / 0.5342 GB, free: 79.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.006603/1.073, allocations: 2.336 MB / 0.5365 GB, free: 76.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/1.073, allocations: 16.2 kB / 0.5365 GB, free: 76.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/1.073, allocations: 15.98 kB / 0.5365 GB, free: 76.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002684/1.075, allocations: 0.6372 MB / 0.5371 GB, free: 76.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/1.077, allocations: 279.6 kB / 0.5374 GB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/1.089, allocations: 6.523 MB / 0.5438 GB, free: 69.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/1.091, allocations: 91.95 kB / 0.5439 GB, free: 69.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002115/1.091, allocations: 52 kB / 0.5439 GB, free: 68.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (133): * Single equations (assignments): 129 * 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: 2 * 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: 2 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001589/1.093, allocations: 0.6072 MB / 0.5445 GB, free: 68.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004662/1.093, allocations: 142.3 kB / 0.5446 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006473/1.1, allocations: 2.279 MB / 0.5469 GB, free: 65.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/1.1, allocations: 12 kB / 0.5469 GB, free: 65.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/1.1, allocations: 4 kB / 0.5469 GB, free: 65.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.939e-05/1.1, allocations: 7.641 kB / 0.5469 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01229/1.112, allocations: 4.431 MB / 0.5512 GB, free: 61.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/1.112, allocations: 4.234 kB / 0.5512 GB, free: 61.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/1.114, allocations: 175.8 kB / 0.5514 GB, free: 61.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003269/1.117, allocations: 0.7341 MB / 0.5521 GB, free: 60.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000239/1.117, allocations: 27.98 kB / 0.5521 GB, free: 60.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01344/1.131, allocations: 8.305 MB / 0.5602 GB, free: 51.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/1.131, allocations: 4 kB / 0.5602 GB, free: 51.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008492/1.139, allocations: 3.367 MB / 0.5635 GB, free: 48.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/1.14, allocations: 359.3 kB / 0.5639 GB, free: 47.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003522/1.141, allocations: 27.98 kB / 0.5639 GB, free: 47.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/1.142, allocations: 87.91 kB / 0.564 GB, free: 47.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003807/1.143, allocations: 100.8 kB / 0.5641 GB, free: 47.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/1.143, allocations: 32 kB / 0.5641 GB, free: 47.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001714/1.145, allocations: 0.8069 MB / 0.5649 GB, free: 46.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/1.145, allocations: 4 kB / 0.5649 GB, free: 46.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002412/1.147, allocations: 479.9 kB / 0.5654 GB, free: 46.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * 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 (83): * Single equations (assignments): 79 * 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 {(7,59.2%) 21,(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.009409/1.156, allocations: 4.714 MB / 0.57 GB, free: 41.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005914/1.162, allocations: 2.311 MB / 0.5722 GB, free: 39.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/1.162, allocations: 4 kB / 0.5722 GB, free: 39.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004253/1.167, allocations: 1.601 MB / 0.5738 GB, free: 37.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/1.17, allocations: 354 kB / 0.5741 GB, free: 37.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03153/1.202, allocations: 17.88 MB / 0.5916 GB, free: 18.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001558/1.203, allocations: 1.665 MB / 0.5932 GB, free: 17.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/1.205, allocations: 0.6867 MB / 0.5939 GB, free: 16.46 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/1.205, allocations: 4 kB / 0.5939 GB, free: 16.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.929/5.134, allocations: 67.19 MB / 0.6595 GB, free: 116.1 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat