Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.00115/0.00115, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009773/0.0009773, allocations: 88 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.564e-05/3.578e-05, allocations: 0 / 351.6 MB, free: 1.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1256, allocations: 51.49 MB / 403.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5174/0.6431, allocations: 154.2 MB / 0.5443 GB, free: 108 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000372/0.6435, allocations: 104.5 kB / 0.5444 GB, free: 4 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.95/2.593, allocations: 0.5118 GB / 1.056 GB, free: 30.83 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.985e-06/2.593, allocations: 0 / 1.056 GB, free: 30.83 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001498/2.595, allocations: 353.8 kB / 1.056 GB, free: 30.77 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.06286/2.658, allocations: 14.85 MB / 1.071 GB, free: 18.13 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/2.658, allocations: 8.031 kB / 1.071 GB, free: 18.12 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01186/2.669, allocations: 2.156 MB / 1.073 GB, free: 15.96 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04437/2.714, allocations: 7.41 MB / 1.08 GB, free: 8.52 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04077/2.755, allocations: 12.54 MB / 1.093 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00196/2.757, allocations: 1.116 MB / 1.094 GB, free: 10.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009101/2.766, allocations: 1.472 MB / 1.095 GB, free: 9.297 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5132/3.279, allocations: 24.83 MB / 1.119 GB, free: 35.62 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008943/3.28, allocations: 28.62 kB / 1.119 GB, free: 35.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006666/3.287, allocations: 0.6262 MB / 1.12 GB, free: 35.62 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001571/3.288, allocations: 1.092 MB / 1.121 GB, free: 35.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06363/3.352, allocations: 22.4 MB / 1.143 GB, free: 35.45 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1777/3.53, allocations: 81.25 MB / 1.222 GB, free: 3.148 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0397/3.569, allocations: 38.87 MB / 1.26 GB, free: 2.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01415/3.584, allocations: 7.264 MB / 1.267 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04167/3.625, allocations: 17.59 MB / 1.284 GB, free: 7.793 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008439/3.634, allocations: 5.182 MB / 1.29 GB, free: 4.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=717): time 9.998e-06/3.634, allocations: 7.375 kB / 1.29 GB, free: 4.227 MB / 0.5261 GB Notification: Performance of matching and sorting (n=725): time 0.5192/4.153, allocations: 25.24 MB / 1.314 GB, free: 84.18 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/4.153, allocations: 474.3 kB / 1.315 GB, free: 83.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01263/4.166, allocations: 5.593 MB / 1.32 GB, free: 83.21 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00184/4.168, allocations: 149.2 kB / 1.32 GB, free: 83.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00747/4.175, allocations: 6.505 MB / 1.327 GB, free: 79.92 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004384/4.18, allocations: 2.41 MB / 1.329 GB, free: 78.41 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/4.181, allocations: 180.9 kB / 1.329 GB, free: 78.41 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000802/4.182, allocations: 0.6663 MB / 1.33 GB, free: 78.09 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009928/4.192, allocations: 4.638 MB / 1.334 GB, free: 78.07 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/4.205, allocations: 7.499 MB / 1.342 GB, free: 74.78 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01557/4.22, allocations: 6.128 MB / 1.348 GB, free: 74.65 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002986/4.22, allocations: 24.66 kB / 1.348 GB, free: 74.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.03599/4.256, allocations: 15.2 MB / 1.362 GB, free: 73.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/4.257, allocations: 46.36 kB / 1.363 GB, free: 73.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001988/4.257, allocations: 85.41 kB / 1.363 GB, free: 73.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007696/4.265, allocations: 2.884 MB / 1.365 GB, free: 73.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008842/4.273, allocations: 1.804 MB / 1.367 GB, free: 73.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04164/4.315, allocations: 30.57 MB / 1.397 GB, free: 60.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0105/4.326, allocations: 0.583 MB / 1.398 GB, free: 60.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003141/4.329, allocations: 408.7 kB / 1.398 GB, free: 60.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (966): * Single equations (assignments): 959 * 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: 6 * 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: 6 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003827/4.333, allocations: 0.6664 MB / 1.399 GB, free: 60.17 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002403/4.335, allocations: 0.7067 MB / 1.399 GB, free: 59.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02707/4.362, allocations: 13.15 MB / 1.412 GB, free: 54.56 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.348e-05/4.362, allocations: 74.34 kB / 1.412 GB, free: 54.56 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.889e-05/4.362, allocations: 35.62 kB / 1.412 GB, free: 54.56 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001869/4.363, allocations: 35.16 kB / 1.412 GB, free: 54.56 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06949/4.432, allocations: 27.52 MB / 1.439 GB, free: 41.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.876e-05/4.432, allocations: 6.406 kB / 1.439 GB, free: 41.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005571/4.438, allocations: 1.079 MB / 1.44 GB, free: 40.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007574/4.445, allocations: 2.93 MB / 1.443 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001783/4.447, allocations: 168.3 kB / 1.443 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0364/4.484, allocations: 32.99 MB / 1.476 GB, free: 7.914 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/4.484, allocations: 11.75 kB / 1.476 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5417/5.025, allocations: 20.06 MB / 1.495 GB, free: 73.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00709/5.033, allocations: 1.806 MB / 1.497 GB, free: 73.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003684/5.036, allocations: 144.8 kB / 1.497 GB, free: 73.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006927/5.043, allocations: 444.4 kB / 1.497 GB, free: 73.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002591/5.046, allocations: 0.6479 MB / 1.498 GB, free: 73.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008811/5.047, allocations: 205.6 kB / 1.498 GB, free: 73.59 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01021/5.057, allocations: 4.219 MB / 1.502 GB, free: 73.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.52e-07/5.057, allocations: 0 / 1.502 GB, free: 73.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01985/5.077, allocations: 2.929 MB / 1.505 GB, free: 73.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (576): * Single equations (assignments): 562 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 8 {(1,100.0%) 1,(24,31.9%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04571/5.123, allocations: 22.48 MB / 1.527 GB, free: 69.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02734/5.15, allocations: 13.01 MB / 1.54 GB, free: 68.26 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/5.15, allocations: 3.594 kB / 1.54 GB, free: 68.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01515/5.165, allocations: 8.161 MB / 1.548 GB, free: 67.13 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01177/5.177, allocations: 1.761 MB / 1.55 GB, free: 67.11 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07955/5.257, allocations: 29.3 MB / 1.578 GB, free: 62.22 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0202/5.277, allocations: 10.14 MB / 1.588 GB, free: 59.36 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01556/5.293, allocations: 2.968 MB / 1.591 GB, free: 59.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01395/5.306, allocations: 5.684 MB / 1.597 GB, free: 54.25 MB / 0.5261 GB Notification: Performance of SimCode: time 1.583e-06/5.307, allocations: 0 / 1.597 GB, free: 54.25 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8187/6.125, allocations: 231.4 MB / 1.823 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/6.126, allocations: 223.6 kB / 1.823 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/16.61, allocations: 0 / 1.823 GB, free: 14.47 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat