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_YD.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_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",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.001139/0.001138, allocations: 176.8 kB / 14.1 MB, free: 1.211 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.391/1.391, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0009589/0.0009586, allocations: 82.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.791e-05/2.805e-05, allocations: 4 kB / 323.6 MB, free: 16.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09316/0.09321, allocations: 47.57 MB / 371.1 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4029/0.4962, allocations: 153.1 MB / 0.5119 GB, free: 4.898 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.4965, allocations: 99.94 kB / 0.512 GB, free: 4.801 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.625/2.121, allocations: 466.1 MB / 0.9672 GB, free: 36.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.024e-06/2.121, allocations: 0 / 0.9672 GB, free: 36.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001243/2.122, allocations: 318.5 kB / 0.9675 GB, free: 36.03 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.04643/2.169, allocations: 13.58 MB / 0.9807 GB, free: 26.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/2.169, allocations: 12.03 kB / 0.9808 GB, free: 26.74 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009191/2.178, allocations: 2.009 MB / 0.9827 GB, free: 24.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03496/2.213, allocations: 6.705 MB / 0.9893 GB, free: 18.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02982/2.243, allocations: 11.46 MB / 1 GB, free: 6.562 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001799/2.245, allocations: 1.043 MB / 1.001 GB, free: 5.516 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006747/2.252, allocations: 1.355 MB / 1.003 GB, free: 4.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4069/2.659, allocations: 23.8 MB / 1.026 GB, free: 37.69 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009408/2.66, allocations: 21.52 kB / 1.026 GB, free: 37.69 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006474/2.666, allocations: 0.5805 MB / 1.027 GB, free: 37.69 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00167/2.668, allocations: 0.9309 MB / 1.028 GB, free: 37.66 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04947/2.717, allocations: 21.63 MB / 1.049 GB, free: 37.53 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1381/2.855, allocations: 77.39 MB / 1.124 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03234/2.888, allocations: 30.55 MB / 1.154 GB, free: 4.93 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01957/2.907, allocations: 10.65 MB / 1.164 GB, free: 396 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0797/2.987, allocations: 33.48 MB / 1.197 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001282/2.987, allocations: 128.4 kB / 1.197 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1011): time 1.634e-05/2.987, allocations: 0 / 1.197 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1019): time 0.4455/3.433, allocations: 38.49 MB / 1.235 GB, free: 88.63 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/3.433, allocations: 166.6 kB / 1.235 GB, free: 88.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008739/3.442, allocations: 4.29 MB / 1.239 GB, free: 88.19 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00216/3.444, allocations: 168.4 kB / 1.239 GB, free: 88.16 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003858/3.448, allocations: 5.198 MB / 1.244 GB, free: 85.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004979/3.453, allocations: 3.345 MB / 1.248 GB, free: 83.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001882/3.455, allocations: 176.2 kB / 1.248 GB, free: 83.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009984/3.456, allocations: 0.7035 MB / 1.249 GB, free: 83.21 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01115/3.467, allocations: 6.661 MB / 1.255 GB, free: 83.19 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01205/3.479, allocations: 8.373 MB / 1.263 GB, free: 81.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01284/3.492, allocations: 7.958 MB / 1.271 GB, free: 81.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.673e-05/3.492, allocations: 15.47 kB / 1.271 GB, free: 81.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.04514/3.537, allocations: 20.93 MB / 1.291 GB, free: 76.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000126/3.537, allocations: 26.31 kB / 1.292 GB, free: 76.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001273/3.537, allocations: 41.16 kB / 1.292 GB, free: 76.06 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01749/3.555, allocations: 8.436 MB / 1.3 GB, free: 73.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006417/3.561, allocations: 1.393 MB / 1.301 GB, free: 73.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03349/3.595, allocations: 27.79 MB / 1.328 GB, free: 56.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007904/3.603, allocations: 424.8 kB / 1.329 GB, free: 56.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002551/3.605, allocations: 378 kB / 1.329 GB, free: 56.43 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (727): * Single equations (assignments): 698 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 5 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.004817/3.61, allocations: 0.5607 MB / 1.33 GB, free: 56.04 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003692/3.614, allocations: 0.6989 MB / 1.33 GB, free: 55.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04911/3.663, allocations: 21 MB / 1.351 GB, free: 42.04 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003404/3.664, allocations: 245.8 kB / 1.351 GB, free: 41.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.239e-05/3.664, allocations: 14.72 kB / 1.351 GB, free: 41.81 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003073/3.664, allocations: 40.17 kB / 1.351 GB, free: 41.81 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08268/3.747, allocations: 39.9 MB / 1.39 GB, free: 8.387 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.836e-05/3.747, allocations: 6.297 kB / 1.39 GB, free: 8.383 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005603/3.752, allocations: 1.191 MB / 1.391 GB, free: 8.098 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3654/4.118, allocations: 8.53 MB / 1.4 GB, free: 87.77 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002454/4.12, allocations: 218.4 kB / 1.4 GB, free: 87.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03576/4.156, allocations: 32.03 MB / 1.431 GB, free: 77.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/4.156, allocations: 10.77 kB / 1.431 GB, free: 77.03 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04928/4.205, allocations: 31.28 MB / 1.462 GB, free: 74.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006927/4.212, allocations: 2.348 MB / 1.464 GB, free: 74.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00322/4.216, allocations: 158.7 kB / 1.464 GB, free: 73.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00682/4.222, allocations: 395.7 kB / 1.464 GB, free: 73.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003256/4.226, allocations: 0.7953 MB / 1.465 GB, free: 73.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001872/4.228, allocations: 264.9 kB / 1.465 GB, free: 73.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006749/4.234, allocations: 3.266 MB / 1.469 GB, free: 72.35 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.21e-07/4.234, allocations: 0 / 1.469 GB, free: 72.35 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01544/4.25, allocations: 2.643 MB / 1.471 GB, free: 72.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (510): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.06235/4.312, allocations: 33.2 MB / 1.504 GB, free: 56.56 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03164/4.344, allocations: 17.41 MB / 1.521 GB, free: 42.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/4.344, allocations: 2.625 kB / 1.521 GB, free: 42.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01925/4.363, allocations: 10.12 MB / 1.531 GB, free: 33.69 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0109/4.374, allocations: 1.585 MB / 1.532 GB, free: 32.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08266/4.457, allocations: 31.54 MB / 1.563 GB, free: 5.082 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3678/4.825, allocations: 10.34 MB / 1.573 GB, free: 83.68 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01053/4.835, allocations: 1.984 MB / 1.575 GB, free: 83.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01232/4.848, allocations: 5.186 MB / 1.58 GB, free: 83.61 MB / 0.4948 GB Notification: Performance of SimCode: time 2.094e-06/4.848, allocations: 1.875 kB / 1.58 GB, free: 83.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7039/5.552, allocations: 277.6 MB / 1.851 GB, free: 85.94 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/5.552, allocations: 229.4 kB / 1.851 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.887/14.44, allocations: 6.969 kB / 1.851 GB, free: 85.63 MB / 0.5105 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YD_res.mat does not exist to compare? outputFormat=mat