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.001413/0.001418, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 91.5 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.493e-05/2.502e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3641, allocations: 47.57 MB / 362.4 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1649/0.5291, allocations: 101.5 MB / 463.9 MB, free: 0.7695 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.5294, allocations: 83.95 kB / 464 MB, free: 0.6875 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.183/0.7125, allocations: 39.7 MB / 0.4919 GB, free: 8.844 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.7126, allocations: 0 / 0.4919 GB, free: 8.844 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002198/0.7128, allocations: 51.94 kB / 0.4919 GB, free: 8.793 MB / 395.1 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.007394/0.7202, allocations: 1.941 MB / 0.4938 GB, free: 6.801 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.7203, allocations: 8.031 kB / 0.4938 GB, free: 6.793 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001551/0.7218, allocations: 253.3 kB / 0.4941 GB, free: 6.543 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004921/0.7268, allocations: 1.34 MB / 0.4954 GB, free: 5.16 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.727, allocations: 64 kB / 0.4955 GB, free: 5.098 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007372/0.7278, allocations: 111.9 kB / 0.4956 GB, free: 4.988 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005797/0.7336, allocations: 1.694 MB / 0.4972 GB, free: 3.293 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006892/0.7405, allocations: 2.029 MB / 0.4992 GB, free: 1.184 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-05/0.7407, allocations: 352 / 0.4992 GB, free: 1.184 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000234/0.7409, allocations: 11.95 kB / 0.4992 GB, free: 1.172 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/0.7411, allocations: 87.52 kB / 0.4993 GB, free: 1.086 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3292/1.07, allocations: 6.81 MB / 0.5059 GB, free: 100.5 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002925/1.073, allocations: 1.229 MB / 0.5071 GB, free: 100.1 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/1.075, allocations: 0.6663 MB / 0.5078 GB, free: 100.1 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004278/1.076, allocations: 134.8 kB / 0.5079 GB, free: 100 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/1.076, allocations: 45.67 kB / 0.508 GB, free: 100 MB / 395.1 MB Notification: Performance of pre-optimization done (n=90): time 4.869e-06/1.076, allocations: 2.953 kB / 0.508 GB, free: 100 MB / 395.1 MB Notification: Performance of matching and sorting (n=113): time 0.01615/1.092, allocations: 4.574 MB / 0.5124 GB, free: 99.34 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/1.092, allocations: 62.75 kB / 0.5125 GB, free: 99.28 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002156/1.094, allocations: 0.844 MB / 0.5133 GB, free: 99.14 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002944/1.095, allocations: 26.8 kB / 0.5133 GB, free: 99.11 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006994/1.095, allocations: 0.8622 MB / 0.5142 GB, free: 98.72 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005255/1.096, allocations: 386.6 kB / 0.5146 GB, free: 98.51 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/1.096, allocations: 0 / 0.5146 GB, free: 98.51 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/1.096, allocations: 366 kB / 0.5149 GB, free: 98.2 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/1.098, allocations: 0.6058 MB / 0.5155 GB, free: 98.19 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/1.099, allocations: 0.9105 MB / 0.5164 GB, free: 97.86 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/1.101, allocations: 0.753 MB / 0.5171 GB, free: 97.85 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-05/1.102, allocations: 3.312 kB / 0.5171 GB, free: 97.85 MB / 395.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.006472/1.108, allocations: 2.131 MB / 0.5192 GB, free: 97.5 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/1.108, allocations: 8.906 kB / 0.5192 GB, free: 97.5 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.761e-05/1.108, allocations: 11.47 kB / 0.5192 GB, free: 97.5 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002735/1.111, allocations: 0.6275 MB / 0.5198 GB, free: 97.32 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/1.113, allocations: 285.9 kB / 0.5201 GB, free: 97.31 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/1.124, allocations: 6.029 MB / 0.526 GB, free: 93.44 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/1.126, allocations: 67.92 kB / 0.5261 GB, free: 93.44 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/1.126, allocations: 53.53 kB / 0.5261 GB, free: 93.43 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.0003729/1.127, allocations: 141.7 kB / 0.5262 GB, free: 93.31 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005234/1.132, allocations: 1.928 MB / 0.5281 GB, free: 92.62 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006428/1.132, allocations: 130.1 kB / 0.5283 GB, free: 92.55 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005551/1.138, allocations: 2.069 MB / 0.5303 GB, free: 91.8 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.412e-05/1.138, allocations: 11.59 kB / 0.5303 GB, free: 91.8 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.138, allocations: 3.344 kB / 0.5303 GB, free: 91.8 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.938e-05/1.138, allocations: 13.61 kB / 0.5303 GB, free: 91.8 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/1.149, allocations: 4.007 MB / 0.5342 GB, free: 90.18 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/1.149, allocations: 0 / 0.5342 GB, free: 90.18 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/1.151, allocations: 182.7 kB / 0.5344 GB, free: 90.16 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003261/1.154, allocations: 0.7123 MB / 0.5351 GB, free: 89.97 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002612/1.155, allocations: 22.92 kB / 0.5351 GB, free: 89.97 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/1.167, allocations: 7.712 MB / 0.5426 GB, free: 84.68 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/1.167, allocations: 14.78 kB / 0.5427 GB, free: 84.68 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007533/1.175, allocations: 3.149 MB / 0.5457 GB, free: 83.18 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.176, allocations: 345.9 kB / 0.5461 GB, free: 82.95 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/1.176, allocations: 12.88 kB / 0.5461 GB, free: 82.95 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/1.178, allocations: 68.34 kB / 0.5461 GB, free: 82.95 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003909/1.178, allocations: 93.31 kB / 0.5462 GB, free: 82.93 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/1.178, allocations: 37.53 kB / 0.5463 GB, free: 82.93 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001299/1.18, allocations: 0.6374 MB / 0.5469 GB, free: 82.63 MB / 395.1 MB Notification: Performance of sort global known variables: time 9.62e-07/1.18, allocations: 3.812 kB / 0.5469 GB, free: 82.63 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002441/1.182, allocations: 409 kB / 0.5473 GB, free: 82.62 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * 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.00829/1.191, allocations: 4.642 MB / 0.5518 GB, free: 79.82 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00527/1.196, allocations: 2.12 MB / 0.5539 GB, free: 78.79 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.559e-06/1.196, allocations: 3.219 kB / 0.5539 GB, free: 78.79 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003965/1.2, allocations: 1.482 MB / 0.5553 GB, free: 77.99 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/1.203, allocations: 267.4 kB / 0.5556 GB, free: 77.92 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/1.214, allocations: 3.664 MB / 0.5592 GB, free: 74.73 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001694/1.215, allocations: 1.67 MB / 0.5608 GB, free: 73.36 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/1.217, allocations: 0.6888 MB / 0.5615 GB, free: 72.72 MB / 395.1 MB Notification: Performance of SimCode: time 1.683e-06/1.217, allocations: 0 / 0.5615 GB, free: 72.72 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.872/5.089, allocations: 65.67 MB / 0.6256 GB, free: 11.12 MB / 395.1 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