Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_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 3.2.3+maint.om/package.mo): time 0.001048/0.001048, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007862/0.0007863, allocations: 85.75 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.913e-05/2.915e-05, allocations: 0 / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.08908, allocations: 47.58 MB / 370.1 MB, free: 1.586 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3794/0.4685, allocations: 146.5 MB / 0.5045 GB, free: 11.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.4688, allocations: 105.9 kB / 0.5047 GB, free: 11.6 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.088/1.557, allocations: 350.6 MB / 0.847 GB, free: 11 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.843e-06/1.557, allocations: 4 kB / 0.847 GB, free: 11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006903/1.558, allocations: 247.7 kB / 0.8472 GB, free: 10.76 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.0344/1.592, allocations: 10.28 MB / 0.8573 GB, free: 388 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/1.592, allocations: 8.031 kB / 0.8573 GB, free: 380 kB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.5048/2.097, allocations: 1.521 MB / 0.8588 GB, free: 28.5 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03177/2.129, allocations: 5.374 MB / 0.864 GB, free: 27.95 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02252/2.151, allocations: 9.373 MB / 0.8732 GB, free: 27.45 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001148/2.152, allocations: 0.7924 MB / 0.874 GB, free: 27.42 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005259/2.158, allocations: 1.04 MB / 0.875 GB, free: 27.41 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04776/2.206, allocations: 17.72 MB / 0.8923 GB, free: 26.22 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004501/2.206, allocations: 18.31 kB / 0.8923 GB, free: 26.21 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002932/2.209, allocations: 455.5 kB / 0.8927 GB, free: 26.21 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007214/2.21, allocations: 0.729 MB / 0.8934 GB, free: 26.18 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03164/2.241, allocations: 16.43 MB / 0.9095 GB, free: 26.07 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1035/2.345, allocations: 58.32 MB / 0.9664 GB, free: 2.73 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02728/2.372, allocations: 23.41 MB / 0.9893 GB, free: 1.16 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01438/2.387, allocations: 7.095 MB / 0.9962 GB, free: 14.87 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05357/2.44, allocations: 22.01 MB / 1.018 GB, free: 14.21 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/2.44, allocations: 98.98 kB / 1.018 GB, free: 14.11 MB / 490.8 MB Notification: Performance of pre-optimization done (n=662): time 1.081e-05/2.44, allocations: 0 / 1.018 GB, free: 14.11 MB / 490.8 MB Notification: Performance of matching and sorting (n=687): time 0.3955/2.836, allocations: 25.02 MB / 1.042 GB, free: 69.2 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.935e-05/2.836, allocations: 140.8 kB / 1.042 GB, free: 69.1 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007197/2.843, allocations: 3.567 MB / 1.046 GB, free: 68.77 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001584/2.845, allocations: 125.3 kB / 1.046 GB, free: 68.74 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003327/2.848, allocations: 4.225 MB / 1.05 GB, free: 66.95 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003421/2.852, allocations: 2.288 MB / 1.052 GB, free: 65.48 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009617/2.853, allocations: 130.4 kB / 1.052 GB, free: 65.48 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0005972/2.853, allocations: 0.5939 MB / 1.053 GB, free: 65.16 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007751/2.861, allocations: 4.439 MB / 1.057 GB, free: 65.14 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009573/2.871, allocations: 6 MB / 1.063 GB, free: 63.48 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009105/2.88, allocations: 5.476 MB / 1.069 GB, free: 63.38 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.03e-05/2.88, allocations: 11.38 kB / 1.069 GB, free: 63.38 MB / 490.8 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.02095/2.901, allocations: 13.61 MB / 1.082 GB, free: 62.78 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.005e-05/2.901, allocations: 25.34 kB / 1.082 GB, free: 62.78 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/2.901, allocations: 44.5 kB / 1.082 GB, free: 62.78 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007384/2.909, allocations: 3.978 MB / 1.086 GB, free: 62.7 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005648/2.914, allocations: 1.301 MB / 1.087 GB, free: 62.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/2.93, allocations: 16.73 MB / 1.103 GB, free: 56.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005607/2.936, allocations: 353.4 kB / 1.104 GB, free: 56.09 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007459/2.937, allocations: 298.3 kB / 1.104 GB, free: 56.09 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,56.2%) 27,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.00111/2.938, allocations: 477.8 kB / 1.105 GB, free: 55.96 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000977/2.939, allocations: 0.5278 MB / 1.105 GB, free: 55.68 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01953/2.959, allocations: 13.15 MB / 1.118 GB, free: 54.05 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001323/2.959, allocations: 152.5 kB / 1.118 GB, free: 53.98 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-05/2.959, allocations: 7.031 kB / 1.118 GB, free: 53.98 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-05/2.959, allocations: 32.67 kB / 1.118 GB, free: 53.98 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05047/3.009, allocations: 26.5 MB / 1.144 GB, free: 42.12 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.493e-05/3.009, allocations: 3.141 kB / 1.144 GB, free: 42.12 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003965/3.013, allocations: 0.8631 MB / 1.145 GB, free: 42.09 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007617/3.021, allocations: 3.923 MB / 1.149 GB, free: 40.92 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00117/3.022, allocations: 154.5 kB / 1.149 GB, free: 40.83 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01719/3.039, allocations: 20.66 MB / 1.169 GB, free: 25.47 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/3.039, allocations: 5.406 kB / 1.169 GB, free: 25.47 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03074/3.07, allocations: 19.8 MB / 1.188 GB, free: 9.973 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004304/3.075, allocations: 1.638 MB / 1.19 GB, free: 8.484 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00156/3.076, allocations: 112.5 kB / 1.19 GB, free: 8.379 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00385/3.08, allocations: 299.9 kB / 1.19 GB, free: 8.164 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001308/3.081, allocations: 0.5114 MB / 1.191 GB, free: 7.844 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006448/3.082, allocations: 195 kB / 1.191 GB, free: 7.672 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.004369/3.086, allocations: 2.688 MB / 1.194 GB, free: 5.242 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.8e-07/3.086, allocations: 9.281 kB / 1.194 GB, free: 5.238 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008305/3.095, allocations: 1.975 MB / 1.196 GB, free: 3.273 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.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 (445): * Single equations (assignments): 403 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.06761/3.162, allocations: 22.52 MB / 1.218 GB, free: 1.723 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.3207/3.483, allocations: 12.33 MB / 1.23 GB, free: 87.68 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/3.483, allocations: 0 / 1.23 GB, free: 87.68 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01169/3.495, allocations: 6.551 MB / 1.236 GB, free: 86.81 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006944/3.502, allocations: 1.17 MB / 1.237 GB, free: 86.79 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04955/3.551, allocations: 22.8 MB / 1.259 GB, free: 83.5 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007693/3.559, allocations: 7.121 MB / 1.266 GB, free: 82.46 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.006065/3.565, allocations: 1.658 MB / 1.268 GB, free: 82.28 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006213/3.572, allocations: 3.984 MB / 1.272 GB, free: 82.28 MB / 0.4949 GB Notification: Performance of SimCode: time 1.142e-06/3.572, allocations: 0 / 1.272 GB, free: 82.28 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5791/4.151, allocations: 190.4 MB / 1.458 GB, free: 69.27 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/4.151, allocations: 246.2 kB / 1.458 GB, free: 68.95 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.795/10.95, allocations: 0 / 1.458 GB, free: 68.95 MB / 0.4949 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat