Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_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.001011/0.001011, allocations: 197.4 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008209/0.0008207, allocations: 101.8 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002126/0.0002127, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1827, allocations: 51.3 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.006428/0.1891, allocations: 9.125 MB / 417.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004032/0.1932, allocations: 3.071 MB / 420.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008456/0.1941, allocations: 51.75 kB / 420.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001155/0.1952, allocations: 0.563 MB / 421 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001648/0.1969, allocations: 0.7761 MB / 421.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.1975, allocations: 251.7 kB / 422 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002279/0.1998, allocations: 3.557 MB / 425.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.2016, allocations: 2.175 MB / 427.7 MB, free: 8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.2029, allocations: 1.121 MB / 428.8 MB, free: 6.875 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001443/0.2043, allocations: 1.506 MB / 430.3 MB, free: 5.363 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002797/0.2046, allocations: 164 kB / 430.5 MB, free: 5.203 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006152/0.2052, allocations: 275.8 kB / 430.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005683/0.2058, allocations: 0.8293 MB / 431.6 MB, free: 4.102 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001183/0.207, allocations: 1.429 MB / 433 MB, free: 2.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0028/0.2098, allocations: 4.168 MB / 437.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.2098, allocations: 0 / 437.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2098, allocations: 4 kB / 437.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001091/0.2099, allocations: 0 / 437.2 MB, free: 14.48 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.005969/0.2159, allocations: 3.002 MB / 440.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.216, allocations: 8.031 kB / 440.2 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005981/0.2166, allocations: 371 kB / 440.6 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.2176, allocations: 396.8 kB / 441 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.2204, allocations: 1.859 MB / 442.8 MB, free: 8.727 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.2206, allocations: 201 kB / 443 MB, free: 8.527 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003531/0.221, allocations: 259.9 kB / 443.3 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005683/0.2267, allocations: 3.527 MB / 446.8 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.84e-05/0.2267, allocations: 4 kB / 446.8 MB, free: 4.641 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002227/0.227, allocations: 108 kB / 446.9 MB, free: 4.535 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001072/0.2271, allocations: 112.9 kB / 447 MB, free: 4.422 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005129/0.2322, allocations: 3.103 MB / 450.1 MB, free: 1.305 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/0.2482, allocations: 10.94 MB / 461.1 MB, free: 6.086 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003258/0.2515, allocations: 3.074 MB / 464.1 MB, free: 2.801 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002066/0.2536, allocations: 1.392 MB / 465.5 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00025/0.2538, allocations: 126.4 kB / 465.6 MB, free: 1.266 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001748/0.2556, allocations: 1.152 MB / 466.8 MB, free: 84 kB / 330.7 MB Notification: Performance of pre-optimization done (n=156): time 3.627e-06/0.2556, allocations: 4 kB / 466.8 MB, free: 80 kB / 330.7 MB Notification: Performance of matching and sorting (n=172): time 0.01922/0.2748, allocations: 8.981 MB / 475.8 MB, free: 6.938 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.922e-05/0.275, allocations: 180.2 kB / 476 MB, free: 6.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002749/0.2777, allocations: 1.824 MB / 477.8 MB, free: 4.898 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.2779, allocations: 61.69 kB / 477.8 MB, free: 4.832 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009655/0.2789, allocations: 1.192 MB / 479 MB, free: 3.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004543/0.2793, allocations: 0.5546 MB / 479.6 MB, free: 3.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.2794, allocations: 40 kB / 479.6 MB, free: 3.023 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.2796, allocations: 377.9 kB / 480 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.2812, allocations: 1.007 MB / 481 MB, free: 1.641 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.283, allocations: 1.446 MB / 482.4 MB, free: 36 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003361/0.2864, allocations: 2.457 MB / 484.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.685e-05/0.2864, allocations: 4 kB / 484.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005488/0.2919, allocations: 3.334 MB / 488.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.292, allocations: 12 kB / 488.3 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.292, allocations: 12 kB / 488.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002031/0.294, allocations: 0.8892 MB / 489.2 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.2952, allocations: 335.4 kB / 489.5 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.3061, allocations: 9.559 MB / 499 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.3076, allocations: 139.9 kB / 499.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/0.3079, allocations: 71.98 kB / 499.2 MB, free: 14.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001571/0.3094, allocations: 0.9287 MB / 0.4885 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.3098, allocations: 201.5 kB / 0.4886 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005286/0.3151, allocations: 3.126 MB / 0.4917 GB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.3152, allocations: 16 kB / 0.4917 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/0.3152, allocations: 8 kB / 0.4917 GB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.3152, allocations: 11.95 kB / 0.4917 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/0.3265, allocations: 6.299 MB / 0.4979 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.3265, allocations: 4 kB / 0.4979 GB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008858/0.3274, allocations: 211.7 kB / 0.4981 GB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002269/0.3297, allocations: 0.9213 MB / 0.499 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/0.3298, allocations: 43.98 kB / 0.499 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1758/0.5057, allocations: 11 MB / 0.5098 GB, free: 86.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5057, allocations: 0 / 0.5098 GB, free: 86.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006305/0.512, allocations: 4.529 MB / 0.5142 GB, free: 84.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008461/0.5129, allocations: 0.4973 MB / 0.5147 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002481/0.5132, allocations: 34.09 kB / 0.5147 GB, free: 84.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009414/0.5141, allocations: 117.6 kB / 0.5148 GB, free: 84.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004758/0.5146, allocations: 200.6 kB / 0.515 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-05/0.5147, allocations: 46.33 kB / 0.5151 GB, free: 84.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001435/0.5161, allocations: 1.248 MB / 0.5163 GB, free: 83.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5161, allocations: 0 / 0.5163 GB, free: 83.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001606/0.5178, allocations: 0.6311 MB / 0.5169 GB, free: 83.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005777/0.5235, allocations: 5.197 MB / 0.522 GB, free: 80.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003821/0.5274, allocations: 3.262 MB / 0.5252 GB, free: 77.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5274, allocations: 0 / 0.5252 GB, free: 77.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002549/0.53, allocations: 2.209 MB / 0.5273 GB, free: 74.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/0.5328, allocations: 0.5359 MB / 0.5278 GB, free: 74.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0233/0.5561, allocations: 17.89 MB / 0.5453 GB, free: 55.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.5574, allocations: 2.145 MB / 0.5474 GB, free: 53.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/0.5585, allocations: 1.015 MB / 0.5484 GB, free: 52.3 MB / 378.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5586, allocations: 4 kB / 0.5484 GB, free: 52.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.826/7.385, allocations: 110.7 MB / 0.6565 GB, free: 5.414 MB / 442.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1)