Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001458/0.001458, allocations: 196.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000782/0.000782, allocations: 98.94 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.279e-05/2.285e-05, allocations: 4 kB / 343.8 MB, free: 8.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 51.48 MB / 395.3 MB, free: 4.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.508, allocations: 109.9 MB / 0.4934 GB, free: 15.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.5084, allocations: 95.56 kB / 0.4935 GB, free: 15.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2092/0.7176, allocations: 82.74 MB / 0.5743 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.7176, allocations: 4 kB / 0.5743 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003292/0.718, allocations: 79.94 kB / 0.5744 GB, free: 0.8086 MB / 442.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.2974/1.015, allocations: 3.236 MB / 0.5775 GB, free: 70.31 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/1.015, allocations: 9.781 kB / 0.5775 GB, free: 70.31 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004985/1.02, allocations: 0.7683 MB / 0.5783 GB, free: 70.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009279/1.03, allocations: 3.363 MB / 0.5816 GB, free: 69.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/1.03, allocations: 100.7 kB / 0.5817 GB, free: 69.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008092/1.031, allocations: 191.3 kB / 0.5818 GB, free: 69.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006282/1.037, allocations: 3.161 MB / 0.5849 GB, free: 69.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006883/1.044, allocations: 3.639 MB / 0.5885 GB, free: 69.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.206e-05/1.044, allocations: 0 / 0.5885 GB, free: 69.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002614/1.044, allocations: 3.312 kB / 0.5885 GB, free: 69.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/1.044, allocations: 144.9 kB / 0.5886 GB, free: 69.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02047/1.065, allocations: 13.02 MB / 0.6013 GB, free: 66.86 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005186/1.07, allocations: 6.733 MB / 0.6079 GB, free: 61.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001983/1.072, allocations: 1.314 MB / 0.6092 GB, free: 61.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00596/1.078, allocations: 3.763 MB / 0.6129 GB, free: 60.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/1.078, allocations: 58.5 kB / 0.6129 GB, free: 60.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 3.667e-06/1.078, allocations: 0 / 0.6129 GB, free: 60.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=142): time 0.01322/1.091, allocations: 5.433 MB / 0.6182 GB, free: 59.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/1.092, allocations: 72.67 kB / 0.6183 GB, free: 59.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002383/1.094, allocations: 1.348 MB / 0.6196 GB, free: 59.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/1.094, allocations: 27.17 kB / 0.6196 GB, free: 59.22 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009284/1.095, allocations: 1.439 MB / 0.6211 GB, free: 58.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003711/1.095, allocations: 472.9 kB / 0.6215 GB, free: 58.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.542e-05/1.095, allocations: 1.812 kB / 0.6215 GB, free: 58.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/1.096, allocations: 371.9 kB / 0.6219 GB, free: 57.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/1.097, allocations: 0.678 MB / 0.6225 GB, free: 57.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/1.098, allocations: 1.123 MB / 0.6236 GB, free: 57.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002522/1.101, allocations: 1.089 MB / 0.6247 GB, free: 56.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/1.101, allocations: 3.719 kB / 0.6247 GB, free: 56.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006108/1.107, allocations: 2.564 MB / 0.6272 GB, free: 55.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/1.107, allocations: 11.5 kB / 0.6272 GB, free: 55.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.145e-05/1.107, allocations: 14.09 kB / 0.6272 GB, free: 55.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001603/1.109, allocations: 490.5 kB / 0.6277 GB, free: 55.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001759/1.11, allocations: 382.5 kB / 0.628 GB, free: 55.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008332/1.119, allocations: 6.15 MB / 0.6341 GB, free: 51.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/1.121, allocations: 48.25 kB / 0.6341 GB, free: 51.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/1.121, allocations: 69.36 kB / 0.6342 GB, free: 51.37 MB / 442.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.0003487/1.121, allocations: 157.1 kB / 0.6343 GB, free: 51.24 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005019/1.126, allocations: 2.329 MB / 0.6366 GB, free: 50.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003933/1.127, allocations: 176.2 kB / 0.6368 GB, free: 50.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005216/1.132, allocations: 2.47 MB / 0.6392 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/1.132, allocations: 17.23 kB / 0.6392 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/1.132, allocations: 9.859 kB / 0.6392 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/1.132, allocations: 10.77 kB / 0.6392 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009412/1.142, allocations: 5.04 MB / 0.6441 GB, free: 46.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/1.142, allocations: 0 / 0.6441 GB, free: 46.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00099/1.143, allocations: 225.8 kB / 0.6443 GB, free: 46.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/1.144, allocations: 488.2 kB / 0.6448 GB, free: 46.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.495e-05/1.144, allocations: 11.67 kB / 0.6448 GB, free: 46.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007477/1.151, allocations: 10.03 MB / 0.6546 GB, free: 38.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.333e-06/1.151, allocations: 2.578 kB / 0.6546 GB, free: 38.24 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005575/1.157, allocations: 3.58 MB / 0.6581 GB, free: 36.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/1.158, allocations: 437.5 kB / 0.6585 GB, free: 36.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/1.158, allocations: 11.62 kB / 0.6585 GB, free: 36.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008913/1.159, allocations: 44.94 kB / 0.6586 GB, free: 36.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/1.159, allocations: 111.4 kB / 0.6587 GB, free: 36.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.201e-05/1.16, allocations: 44.75 kB / 0.6587 GB, free: 36.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001406/1.161, allocations: 1.018 MB / 0.6597 GB, free: 35.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.633e-06/1.161, allocations: 3.188 kB / 0.6597 GB, free: 35.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002269/1.163, allocations: 0.5545 MB / 0.6603 GB, free: 35.63 MB / 442.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.zeroInductor.i0,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,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.005725/1.169, allocations: 4.769 MB / 0.6649 GB, free: 32.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003614/1.173, allocations: 2.166 MB / 0.667 GB, free: 31.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.173, allocations: 0 / 0.667 GB, free: 31.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/1.174, allocations: 1.583 MB / 0.6686 GB, free: 30.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/1.177, allocations: 363.5 kB / 0.6689 GB, free: 30.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/1.187, allocations: 5.534 MB / 0.6743 GB, free: 28.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/1.189, allocations: 2.43 MB / 0.6767 GB, free: 27.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001611/1.191, allocations: 385.6 kB / 0.6771 GB, free: 27.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/1.192, allocations: 1.115 MB / 0.6782 GB, free: 26.43 MB / 442.7 MB Notification: Performance of SimCode: time 1.082e-06/1.192, allocations: 0 / 0.6782 GB, free: 26.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08175/1.274, allocations: 46.25 MB / 0.7233 GB, free: 9.516 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002994/1.274, allocations: 197.9 kB / 0.7235 GB, free: 9.316 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.332/4.606, allocations: 6.953 kB / 0.7235 GB, free: 9.312 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat