Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.00103/0.00103, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008716/0.0008717, allocations: 96.58 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.884e-05/1.886e-05, allocations: 4 kB / 337.2 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3814/0.4958, allocations: 108.9 MB / 496.5 MB, free: 1.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.4962, allocations: 95.94 kB / 496.6 MB, free: 1.637 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4107/0.9069, allocations: 79.49 MB / 0.5626 GB, free: 94.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.9069, allocations: 1.25 kB / 0.5626 GB, free: 94.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002497/0.9072, allocations: 76.94 kB / 0.5626 GB, free: 94.78 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01013/0.9173, allocations: 3.218 MB / 0.5658 GB, free: 93.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.9174, allocations: 9.031 kB / 0.5658 GB, free: 93.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005147/0.9226, allocations: 0.7301 MB / 0.5665 GB, free: 93.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009938/0.9325, allocations: 3.345 MB / 0.5698 GB, free: 92.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002473/0.9328, allocations: 103.2 kB / 0.5699 GB, free: 92.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001376/0.9342, allocations: 193 kB / 0.5701 GB, free: 92.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008809/0.943, allocations: 3.165 MB / 0.5731 GB, free: 92.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008192/0.9513, allocations: 3.637 MB / 0.5767 GB, free: 92.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.623e-05/0.9514, allocations: 3.703 kB / 0.5767 GB, free: 92.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002965/0.9517, allocations: 3.938 kB / 0.5767 GB, free: 92.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.9519, allocations: 139.3 kB / 0.5768 GB, free: 92.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02197/0.9738, allocations: 12.95 MB / 0.5895 GB, free: 88.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005142/0.979, allocations: 6.74 MB / 0.5961 GB, free: 82.19 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/0.9809, allocations: 1.301 MB / 0.5973 GB, free: 81.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005731/0.9867, allocations: 3.513 MB / 0.6008 GB, free: 79.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.9867, allocations: 51.14 kB / 0.6008 GB, free: 79.76 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 3.186e-06/0.9868, allocations: 0 / 0.6008 GB, free: 79.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=142): time 0.009526/0.9963, allocations: 5.191 MB / 0.6059 GB, free: 77.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.9963, allocations: 63.5 kB / 0.606 GB, free: 77.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.9982, allocations: 1.341 MB / 0.6073 GB, free: 76.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.485e-05/0.9983, allocations: 25.7 kB / 0.6073 GB, free: 76.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006404/0.9989, allocations: 1.44 MB / 0.6087 GB, free: 75.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002716/0.9992, allocations: 470.7 kB / 0.6091 GB, free: 75.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.306e-05/0.9993, allocations: 0 / 0.6091 GB, free: 75.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.9994, allocations: 369.9 kB / 0.6095 GB, free: 74.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008005/1, allocations: 0.6795 MB / 0.6102 GB, free: 74.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009909/1.001, allocations: 1.119 MB / 0.6112 GB, free: 73.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/1.003, allocations: 1.023 MB / 0.6122 GB, free: 73.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/1.003, allocations: 3.5 kB / 0.6123 GB, free: 73.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.00371/1.006, allocations: 2.498 MB / 0.6147 GB, free: 72.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/1.006, allocations: 14.31 kB / 0.6147 GB, free: 72.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/1.006, allocations: 14.75 kB / 0.6147 GB, free: 72.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/1.008, allocations: 493.8 kB / 0.6152 GB, free: 72.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/1.009, allocations: 382 kB / 0.6156 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005976/1.015, allocations: 6.134 MB / 0.6215 GB, free: 67.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/1.017, allocations: 44.77 kB / 0.6216 GB, free: 67.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/1.017, allocations: 71.73 kB / 0.6217 GB, free: 67.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002649/1.017, allocations: 150.7 kB / 0.6218 GB, free: 67.61 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003397/1.02, allocations: 2.26 MB / 0.624 GB, free: 66.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002629/1.021, allocations: 176.4 kB / 0.6242 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/1.024, allocations: 2.396 MB / 0.6265 GB, free: 65.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/1.024, allocations: 18.64 kB / 0.6265 GB, free: 65.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-05/1.024, allocations: 3.844 kB / 0.6265 GB, free: 65.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/1.024, allocations: 11.31 kB / 0.6265 GB, free: 65.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008625/1.033, allocations: 4.962 MB / 0.6314 GB, free: 62.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/1.033, allocations: 3.5 kB / 0.6314 GB, free: 62.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/1.034, allocations: 221.2 kB / 0.6316 GB, free: 62.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/1.035, allocations: 488.7 kB / 0.6321 GB, free: 62.76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/1.036, allocations: 15.05 kB / 0.6321 GB, free: 62.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008373/1.044, allocations: 10.03 MB / 0.6419 GB, free: 54.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/1.044, allocations: 12.03 kB / 0.6419 GB, free: 54.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005603/1.05, allocations: 3.502 MB / 0.6453 GB, free: 50.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/1.051, allocations: 427.1 kB / 0.6457 GB, free: 50.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006128/1.051, allocations: 15.95 kB / 0.6457 GB, free: 50.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/1.053, allocations: 51.09 kB / 0.6458 GB, free: 50.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/1.053, allocations: 110 kB / 0.6459 GB, free: 50.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.741e-05/1.053, allocations: 39.89 kB / 0.6459 GB, free: 50.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001867/1.055, allocations: 1.008 MB / 0.6469 GB, free: 49.42 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.3e-07/1.055, allocations: 0 / 0.6469 GB, free: 49.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002841/1.058, allocations: 0.5464 MB / 0.6474 GB, free: 48.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005491/1.063, allocations: 4.673 MB / 0.652 GB, free: 44.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003614/1.067, allocations: 2.169 MB / 0.6541 GB, free: 42.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.067, allocations: 4.125 kB / 0.6541 GB, free: 42.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00203/1.069, allocations: 1.579 MB / 0.6557 GB, free: 40.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/1.072, allocations: 358.2 kB / 0.656 GB, free: 40.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01219/1.084, allocations: 5.518 MB / 0.6614 GB, free: 35.88 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002437/1.087, allocations: 2.428 MB / 0.6638 GB, free: 33.96 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001479/1.088, allocations: 387 kB / 0.6641 GB, free: 33.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/1.089, allocations: 1.118 MB / 0.6652 GB, free: 32.68 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/1.089, allocations: 0 / 0.6652 GB, free: 32.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08699/1.176, allocations: 45.72 MB / 0.7099 GB, free: 6.25 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002422/1.177, allocations: 186.7 kB / 0.7101 GB, free: 6.059 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.289/4.466, allocations: 0 / 0.7101 GB, free: 6.059 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat