Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 95.05 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.241e-05/5.254e-05, allocations: 4 kB / 350.7 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1471, allocations: 51.47 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3768/0.524, allocations: 103.3 MB / 0.4936 GB, free: 2.508 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.5243, allocations: 83.69 kB / 0.4936 GB, free: 2.465 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1074/0.6317, allocations: 40.48 MB / 0.5332 GB, free: 11.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.6318, allocations: 0 / 0.5332 GB, free: 11.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001716/0.632, allocations: 51.94 kB / 0.5332 GB, free: 11.17 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.005172/0.6372, allocations: 1.949 MB / 0.5351 GB, free: 9.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.6372, allocations: 12.03 kB / 0.5351 GB, free: 9.164 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004166/0.6377, allocations: 265.8 kB / 0.5354 GB, free: 8.895 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008257/0.6385, allocations: 257.2 kB / 0.5356 GB, free: 8.641 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002813/0.6413, allocations: 1.348 MB / 0.537 GB, free: 7.246 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.6414, allocations: 139.5 kB / 0.5371 GB, free: 7.109 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000305/0.6418, allocations: 179.9 kB / 0.5373 GB, free: 6.934 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004204/0.646, allocations: 2.282 MB / 0.5395 GB, free: 4.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.69e-05/0.6461, allocations: 8.344 kB / 0.5395 GB, free: 4.562 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/0.6463, allocations: 75.95 kB / 0.5396 GB, free: 4.488 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001228/0.6464, allocations: 83.52 kB / 0.5397 GB, free: 4.406 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003042/0.6495, allocations: 1.783 MB / 0.5414 GB, free: 2.621 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01101/0.6605, allocations: 7.162 MB / 0.5484 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.6622, allocations: 1.288 MB / 0.5496 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009924/0.6632, allocations: 0.6859 MB / 0.5503 GB, free: 9.227 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003093/0.6635, allocations: 137.8 kB / 0.5504 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.343e-05/0.6636, allocations: 47.34 kB / 0.5505 GB, free: 9.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=90): time 3.216e-06/0.6636, allocations: 0 / 0.5505 GB, free: 9.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=114): time 0.01413/0.6777, allocations: 5.976 MB / 0.5563 GB, free: 2.988 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.6778, allocations: 64.41 kB / 0.5564 GB, free: 2.914 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.6794, allocations: 1.035 MB / 0.5574 GB, free: 1.867 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.979e-05/0.6795, allocations: 45.7 kB / 0.5574 GB, free: 1.816 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005638/0.6801, allocations: 0.8614 MB / 0.5583 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002946/0.6804, allocations: 390.3 kB / 0.5587 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.559e-05/0.6805, allocations: 32 kB / 0.5587 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.6806, allocations: 361.9 kB / 0.559 GB, free: 168 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008962/0.6815, allocations: 0.6391 MB / 0.5597 GB, free: 15.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.6827, allocations: 0.9385 MB / 0.5606 GB, free: 14.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.6838, allocations: 0.7818 MB / 0.5613 GB, free: 13.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.024e-06/0.6838, allocations: 4 kB / 0.5613 GB, free: 13.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.003763/0.6875, allocations: 2.342 MB / 0.5636 GB, free: 11.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.6876, allocations: 12 kB / 0.5636 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.6876, allocations: 8 kB / 0.5636 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.6892, allocations: 0.6384 MB / 0.5643 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.6902, allocations: 287.6 kB / 0.5645 GB, free: 10.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007564/0.6978, allocations: 6.296 MB / 0.5707 GB, free: 3.793 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.6994, allocations: 95.97 kB / 0.5708 GB, free: 3.699 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.6995, allocations: 51.98 kB / 0.5708 GB, free: 3.648 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * 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.0003503/0.6999, allocations: 180.6 kB / 0.571 GB, free: 3.465 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/0.7002, allocations: 138.3 kB / 0.5711 GB, free: 3.328 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003834/0.704, allocations: 2.193 MB / 0.5733 GB, free: 1.109 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.704, allocations: 12 kB / 0.5733 GB, free: 1.098 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.7041, allocations: 8.062 kB / 0.5733 GB, free: 1.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/0.7041, allocations: 15.97 kB / 0.5733 GB, free: 1.074 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2478/0.9519, allocations: 4.364 MB / 0.5776 GB, free: 97.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.9519, allocations: 6.688 kB / 0.5776 GB, free: 97.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007254/0.9527, allocations: 175.7 kB / 0.5778 GB, free: 97.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/0.9544, allocations: 0.7082 MB / 0.5784 GB, free: 97.78 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.9546, allocations: 32.97 kB / 0.5785 GB, free: 97.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00754/0.9621, allocations: 8.023 MB / 0.5863 GB, free: 94.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.9622, allocations: 3.125 kB / 0.5863 GB, free: 94.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004602/0.9668, allocations: 3.284 MB / 0.5895 GB, free: 93.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008646/0.9676, allocations: 365.8 kB / 0.5899 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000365/0.968, allocations: 29.91 kB / 0.5899 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009051/0.9689, allocations: 83.59 kB / 0.59 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.9692, allocations: 100.6 kB / 0.5901 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.504e-05/0.9693, allocations: 39.69 kB / 0.5901 GB, free: 93.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001243/0.9705, allocations: 0.792 MB / 0.5909 GB, free: 93.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9705, allocations: 0 / 0.5909 GB, free: 93.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001558/0.9721, allocations: 485.1 kB / 0.5913 GB, free: 93.29 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (85): * Single equations (assignments): 81 * 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 {(5,84.0%) 23,(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.004992/0.9771, allocations: 4.841 MB / 0.5961 GB, free: 91.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003331/0.9804, allocations: 2.218 MB / 0.5982 GB, free: 90.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.9805, allocations: 3.281 kB / 0.5982 GB, free: 90.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002174/0.9826, allocations: 1.508 MB / 0.5997 GB, free: 90.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/0.9844, allocations: 350.1 kB / 0.6 GB, free: 90.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006575/0.991, allocations: 3.788 MB / 0.6037 GB, free: 89.55 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.9922, allocations: 1.693 MB / 0.6054 GB, free: 88.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001/0.9932, allocations: 292.7 kB / 0.6057 GB, free: 88.78 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008814/0.9941, allocations: 0.6844 MB / 0.6063 GB, free: 88.77 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/0.9941, allocations: 0 / 0.6063 GB, free: 88.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07726/1.071, allocations: 40.02 MB / 0.6454 GB, free: 85.67 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/1.072, allocations: 196.7 kB / 0.6456 GB, free: 85.45 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.058/4.13, allocations: 0 / 0.6456 GB, free: 85.45 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat