Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008651/0.000865, allocations: 91.73 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002558/0.0002559, allocations: 4 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1955, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.3099, allocations: 103.1 MB / 0.4929 GB, free: 9.285 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.3101, allocations: 89.05 kB / 0.493 GB, free: 9.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2558/0.5659, allocations: 41.11 MB / 0.5331 GB, free: 81.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.566, allocations: 4 kB / 0.5331 GB, free: 81.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.5661, allocations: 55.88 kB / 0.5332 GB, free: 81.04 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.003588/0.5697, allocations: 2.224 MB / 0.5353 GB, free: 78.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.5697, allocations: 16.03 kB / 0.5354 GB, free: 78.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003012/0.57, allocations: 265.8 kB / 0.5356 GB, free: 78.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005639/0.5706, allocations: 265.2 kB / 0.5359 GB, free: 78.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.5727, allocations: 1.415 MB / 0.5373 GB, free: 76.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.314e-05/0.5728, allocations: 143.5 kB / 0.5374 GB, free: 76.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.573, allocations: 183.9 kB / 0.5376 GB, free: 76.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002943/0.576, allocations: 2.38 MB / 0.5399 GB, free: 73.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/0.576, allocations: 7.938 kB / 0.5399 GB, free: 73.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001713/0.5762, allocations: 75.98 kB / 0.54 GB, free: 73.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-05/0.5763, allocations: 83.5 kB / 0.54 GB, free: 73.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002555/0.5788, allocations: 1.931 MB / 0.5419 GB, free: 71.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009183/0.588, allocations: 7.487 MB / 0.5492 GB, free: 64.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.5897, allocations: 1.323 MB / 0.5505 GB, free: 62.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.5899, allocations: 134 kB / 0.5507 GB, free: 62.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.59, allocations: 43.56 kB / 0.5507 GB, free: 62.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.745e-06/0.59, allocations: 0 / 0.5507 GB, free: 62.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=103): time 0.008408/0.5984, allocations: 5.076 MB / 0.5557 GB, free: 57.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.5984, allocations: 64.41 kB / 0.5557 GB, free: 57.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.5999, allocations: 1.186 MB / 0.5569 GB, free: 56.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.127e-05/0.6, allocations: 49.64 kB / 0.5569 GB, free: 56.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004614/0.6005, allocations: 0.9008 MB / 0.5578 GB, free: 55.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.6007, allocations: 354.8 kB / 0.5581 GB, free: 54.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.889e-05/0.6008, allocations: 24 kB / 0.5582 GB, free: 54.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.701e-05/0.6008, allocations: 357.9 kB / 0.5585 GB, free: 54.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008049/0.6016, allocations: 0.6506 MB / 0.5591 GB, free: 53.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009194/0.6026, allocations: 0.9375 MB / 0.5601 GB, free: 52.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009601/0.6035, allocations: 0.7838 MB / 0.5608 GB, free: 51.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.6036, allocations: 4 kB / 0.5608 GB, free: 51.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003759/0.6073, allocations: 2.48 MB / 0.5633 GB, free: 49.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.6074, allocations: 8 kB / 0.5633 GB, free: 49.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.6074, allocations: 8 kB / 0.5633 GB, free: 49.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/0.6092, allocations: 0.7781 MB / 0.564 GB, free: 48.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008032/0.61, allocations: 231.7 kB / 0.5643 GB, free: 48.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008762/0.6188, allocations: 8.883 MB / 0.5729 GB, free: 39.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.6201, allocations: 75.92 kB / 0.573 GB, free: 39.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.6202, allocations: 51.98 kB / 0.573 GB, free: 39.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (111): * Single equations (assignments): 109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009534/0.6212, allocations: 0.6262 MB / 0.5737 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.6214, allocations: 146.2 kB / 0.5738 GB, free: 38.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.6241, allocations: 1.952 MB / 0.5757 GB, free: 36.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.6241, allocations: 8 kB / 0.5757 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.6241, allocations: 4 kB / 0.5757 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.6242, allocations: 3.984 kB / 0.5757 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005408/0.6296, allocations: 4.039 MB / 0.5797 GB, free: 32.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.6296, allocations: 7.938 kB / 0.5797 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007909/0.6304, allocations: 191.7 kB / 0.5799 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.6315, allocations: 475 kB / 0.5803 GB, free: 31.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.445e-05/0.6315, allocations: 23.98 kB / 0.5803 GB, free: 31.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004392/0.6359, allocations: 6.309 MB / 0.5865 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.636, allocations: 8.016 kB / 0.5865 GB, free: 24.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003484/0.6394, allocations: 2.948 MB / 0.5894 GB, free: 21.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007603/0.6402, allocations: 363.1 kB / 0.5897 GB, free: 21.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.6404, allocations: 27.98 kB / 0.5898 GB, free: 21.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007483/0.6412, allocations: 71.92 kB / 0.5898 GB, free: 21.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.6413, allocations: 88.83 kB / 0.5899 GB, free: 21.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-05/0.6414, allocations: 27.98 kB / 0.5899 GB, free: 21.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001069/0.6425, allocations: 0.927 MB / 0.5908 GB, free: 20.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6425, allocations: 0 / 0.5908 GB, free: 20.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001357/0.6439, allocations: 467.9 kB / 0.5913 GB, free: 19.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (87): * Single equations (assignments): 83 * 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 {(2,100.0%) 12,(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.003843/0.6477, allocations: 4.176 MB / 0.5954 GB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.6506, allocations: 2.09 MB / 0.5974 GB, free: 13.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.6507, allocations: 1.875 kB / 0.5974 GB, free: 13.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.6523, allocations: 1.371 MB / 0.5987 GB, free: 12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.6538, allocations: 351.1 kB / 0.5991 GB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01871/0.6725, allocations: 18.29 MB / 0.6169 GB, free: 8.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.6739, allocations: 1.724 MB / 0.6186 GB, free: 7.082 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001015/0.6749, allocations: 316.1 kB / 0.6189 GB, free: 6.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008823/0.6758, allocations: 0.7062 MB / 0.6196 GB, free: 6.066 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6758, allocations: 0 / 0.6196 GB, free: 6.066 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2338/0.9096, allocations: 39.9 MB / 0.6586 GB, free: 113.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/0.9098, allocations: 228 kB / 0.6588 GB, free: 113.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.022/3.932, allocations: 0 / 0.6588 GB, free: 113.4 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat