Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_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.0009706/0.0009705, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.5 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007738/0.000774, allocations: 93.88 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002171/0.0002172, allocations: 8 kB / 356.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.221, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.009665/0.2307, allocations: 13.07 MB / 421.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007147/0.2379, allocations: 4.493 MB / 425.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002112/0.2401, allocations: 79.69 kB / 425.8 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002345/0.2425, allocations: 0.8078 MB / 426.6 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003507/0.246, allocations: 1.189 MB / 427.8 MB, free: 8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00174/0.2477, allocations: 0.6654 MB / 428.5 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004814/0.2526, allocations: 5.218 MB / 433.7 MB, free: 2.098 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00355/0.2561, allocations: 3.205 MB / 436.9 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002585/0.2587, allocations: 1.588 MB / 438.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.2616, allocations: 2.031 MB / 440.5 MB, free: 11.2 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000506/0.2621, allocations: 252 kB / 440.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.2634, allocations: 471.7 kB / 441.2 MB, free: 10.49 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008991/0.2643, allocations: 0.9926 MB / 442.2 MB, free: 9.496 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002436/0.2668, allocations: 2.09 MB / 444.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006492/0.2733, allocations: 6.759 MB / 451 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.2733, allocations: 4 kB / 451 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2733, allocations: 0 / 451 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002201/0.2735, allocations: 0 / 451 MB, free: 0.6094 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.0116/0.2851, allocations: 4.546 MB / 455.6 MB, free: 11.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2852, allocations: 12.03 kB / 455.6 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00145/0.2867, allocations: 0.5313 MB / 456.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004719/0.2914, allocations: 0.9479 MB / 457.1 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005957/0.2974, allocations: 2.895 MB / 460 MB, free: 7.539 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003319/0.2977, allocations: 303.7 kB / 460.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001087/0.2988, allocations: 379.9 kB / 460.6 MB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/0.3106, allocations: 5.368 MB / 466 MB, free: 1.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001374/0.3108, allocations: 15.83 kB / 466 MB, free: 1.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007416/0.3115, allocations: 164 kB / 466.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001735/0.3117, allocations: 171.7 kB / 466.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009766/0.3215, allocations: 4.73 MB / 471.1 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03248/0.354, allocations: 17.08 MB / 488.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009885/0.3639, allocations: 8.777 MB / 496.9 MB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003371/0.3673, allocations: 1.881 MB / 498.8 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009388/0.3768, allocations: 5.12 MB / 0.4921 GB, free: 9.988 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002172/0.379, allocations: 1.332 MB / 0.4934 GB, free: 8.625 MB / 378.7 MB Notification: Performance of pre-optimization done (n=185): time 4.308e-06/0.379, allocations: 0 / 0.4934 GB, free: 8.625 MB / 378.7 MB Notification: Performance of matching and sorting (n=188): time 0.1893/0.5683, allocations: 8.729 MB / 0.502 GB, free: 88.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.5684, allocations: 231.6 kB / 0.5022 GB, free: 88.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003482/0.5719, allocations: 2.32 MB / 0.5044 GB, free: 87.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000293/0.5722, allocations: 66.7 kB / 0.5045 GB, free: 87.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.5734, allocations: 1.737 MB / 0.5062 GB, free: 86.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004296/0.5738, allocations: 0.6164 MB / 0.5068 GB, free: 86.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.574, allocations: 47.72 kB / 0.5068 GB, free: 86.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.5741, allocations: 391.4 kB / 0.5072 GB, free: 85.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.5755, allocations: 1.022 MB / 0.5082 GB, free: 85.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.5773, allocations: 1.634 MB / 0.5098 GB, free: 84.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003034/0.5803, allocations: 2.646 MB / 0.5124 GB, free: 82.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.5803, allocations: 8.312 kB / 0.5124 GB, free: 82.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005297/0.5856, allocations: 3.576 MB / 0.5159 GB, free: 81.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.5857, allocations: 15.81 kB / 0.5159 GB, free: 81.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.5857, allocations: 15.75 kB / 0.5159 GB, free: 81.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/0.5873, allocations: 0.7614 MB / 0.5167 GB, free: 81.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.5885, allocations: 399.5 kB / 0.5171 GB, free: 81.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009076/0.5976, allocations: 10.84 MB / 0.5276 GB, free: 72.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.5995, allocations: 145.2 kB / 0.5278 GB, free: 72.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.5996, allocations: 88 kB / 0.5279 GB, free: 72.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 214 * 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: 4 * 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: 4 {(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.001936/0.6016, allocations: 1.323 MB / 0.5292 GB, free: 71.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000336/0.6019, allocations: 249 kB / 0.5294 GB, free: 71.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/0.6065, allocations: 3.383 MB / 0.5327 GB, free: 67.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.6065, allocations: 20 kB / 0.5327 GB, free: 67.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.6066, allocations: 16 kB / 0.5327 GB, free: 67.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.6066, allocations: 7.969 kB / 0.5327 GB, free: 67.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008857/0.6154, allocations: 7.037 MB / 0.5396 GB, free: 60.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.6155, allocations: 4.031 kB / 0.5396 GB, free: 60.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007648/0.6162, allocations: 195.7 kB / 0.5398 GB, free: 60.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001947/0.6182, allocations: 0.9342 MB / 0.5407 GB, free: 59.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.6183, allocations: 47.98 kB / 0.5408 GB, free: 59.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01206/0.6304, allocations: 15.23 MB / 0.5556 GB, free: 43.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.6304, allocations: 3.938 kB / 0.5556 GB, free: 43.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006463/0.6369, allocations: 4.801 MB / 0.5603 GB, free: 38.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.6381, allocations: 0.5604 MB / 0.5609 GB, free: 38.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002937/0.6384, allocations: 43.98 kB / 0.5609 GB, free: 37.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.6395, allocations: 116 kB / 0.561 GB, free: 37.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004923/0.64, allocations: 210.8 kB / 0.5612 GB, free: 37.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.6401, allocations: 55.27 kB / 0.5613 GB, free: 37.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001944/0.642, allocations: 1.579 MB / 0.5628 GB, free: 36.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6421, allocations: 0 / 0.5628 GB, free: 36.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002302/0.6444, allocations: 0.7877 MB / 0.5636 GB, free: 35.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00611/0.6505, allocations: 5.448 MB / 0.5689 GB, free: 29.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004155/0.6547, allocations: 3.322 MB / 0.5721 GB, free: 26.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.6547, allocations: 0 / 0.5721 GB, free: 26.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00281/0.6575, allocations: 2.41 MB / 0.5745 GB, free: 23.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003326/0.6608, allocations: 0.6745 MB / 0.5752 GB, free: 23.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03379/0.6946, allocations: 22.28 MB / 0.5969 GB, free: 15.47 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002561/0.6972, allocations: 2.786 MB / 0.5996 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001922/0.6992, allocations: 1.468 MB / 0.6011 GB, free: 11.19 MB / 394.7 MB Notification: Performance of SimCode: time 6.82e-07/0.6992, allocations: 0 / 0.6011 GB, free: 11.19 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.374/8.073, allocations: 176.2 MB / 0.7732 GB, free: 70.6 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1)