Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.0007831/0.0007832, allocations: 175.2 kB / 16.72 MB, free: 5.051 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.128/1.128, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0006812/0.0006813, allocations: 86.34 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002587, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1702, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.01481/0.1851, allocations: 21.27 MB / 396.5 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0092/0.1943, allocations: 6.699 MB / 403.2 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002937/0.1972, allocations: 123.5 kB / 403.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.1997, allocations: 1.173 MB / 404.5 MB, free: 19.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003666/0.2034, allocations: 1.899 MB / 406.4 MB, free: 17.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001806/0.2052, allocations: 0.9768 MB / 407.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004438/0.2097, allocations: 7.281 MB / 414.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00358/0.2132, allocations: 4.511 MB / 419.1 MB, free: 4.582 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0018/0.2151, allocations: 2.284 MB / 421.4 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002236/0.2173, allocations: 3.027 MB / 424.4 MB, free: 15.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005475/0.2179, allocations: 364 kB / 424.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.2193, allocations: 0.7921 MB / 425.6 MB, free: 14.1 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001161/0.2205, allocations: 1.506 MB / 427.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002453/0.223, allocations: 2.992 MB / 430.1 MB, free: 9.578 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006807/0.2298, allocations: 9.287 MB / 439.4 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2298, allocations: 0 / 439.4 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2298, allocations: 0 / 439.4 MB, free: 272 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001046/0.2299, allocations: 0 / 439.4 MB, free: 272 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01201/0.2419, allocations: 6.238 MB / 445.6 MB, free: 9.941 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.242, allocations: 12.03 kB / 445.6 MB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009233/0.2429, allocations: 0.774 MB / 446.4 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004815/0.2477, allocations: 1.231 MB / 447.6 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005464/0.2532, allocations: 3.682 MB / 451.3 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/0.2535, allocations: 447.7 kB / 451.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007101/0.2542, allocations: 0.5545 MB / 452.3 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01068/0.2649, allocations: 7.264 MB / 459.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.265, allocations: 11.84 kB / 459.6 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004732/0.2655, allocations: 232 kB / 459.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002407/0.2658, allocations: 271.3 kB / 460.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009377/0.2751, allocations: 6.131 MB / 466.2 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0309/0.3061, allocations: 23.95 MB / 490.1 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007416/0.3135, allocations: 8.745 MB / 498.9 MB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003304/0.3168, allocations: 2.406 MB / 0.4895 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1358/0.4526, allocations: 7.044 MB / 0.4964 GB, free: 99.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.4527, allocations: 58.47 kB / 0.4965 GB, free: 99.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 4.058e-06/0.4527, allocations: 0 / 0.4965 GB, free: 99.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.02789/0.4806, allocations: 14.53 MB / 0.5107 GB, free: 93.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.4807, allocations: 79.91 kB / 0.5107 GB, free: 93.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003463/0.4841, allocations: 3.463 MB / 0.5141 GB, free: 91.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001347/0.4843, allocations: 70.64 kB / 0.5142 GB, free: 91.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.4853, allocations: 2.677 MB / 0.5168 GB, free: 88.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004183/0.4857, allocations: 0.9648 MB / 0.5177 GB, free: 87.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.4859, allocations: 76.7 kB / 0.5178 GB, free: 87.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.486, allocations: 457.5 kB / 0.5183 GB, free: 86.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/0.4881, allocations: 1.581 MB / 0.5198 GB, free: 85.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002372/0.4904, allocations: 2.792 MB / 0.5225 GB, free: 82.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004625/0.4951, allocations: 4.668 MB / 0.5271 GB, free: 76.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/0.4951, allocations: 12 kB / 0.5271 GB, free: 76.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007023/0.5021, allocations: 5.553 MB / 0.5325 GB, free: 71.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.5022, allocations: 20 kB / 0.5325 GB, free: 71.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/0.5022, allocations: 36.62 kB / 0.5326 GB, free: 71.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/0.5035, allocations: 0.69 MB / 0.5332 GB, free: 70.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/0.5062, allocations: 0.8853 MB / 0.5341 GB, free: 69.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007224/0.5134, allocations: 9.594 MB / 0.5435 GB, free: 59.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/0.516, allocations: 239.6 kB / 0.5437 GB, free: 59.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002149/0.5162, allocations: 169.4 kB / 0.5439 GB, free: 59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (429): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002301/0.5185, allocations: 1.626 MB / 0.5455 GB, free: 57.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004627/0.519, allocations: 391.2 kB / 0.5458 GB, free: 56.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006167/0.5252, allocations: 4.596 MB / 0.5503 GB, free: 52.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-05/0.5252, allocations: 31.94 kB / 0.5503 GB, free: 52.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.5252, allocations: 8 kB / 0.5504 GB, free: 52.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-05/0.5253, allocations: 11.95 kB / 0.5504 GB, free: 52.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/0.537, allocations: 10.08 MB / 0.5602 GB, free: 41.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.537, allocations: 4 kB / 0.5602 GB, free: 41.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/0.539, allocations: 0.5195 MB / 0.5607 GB, free: 41.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/0.5405, allocations: 0.7496 MB / 0.5615 GB, free: 40.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/0.5407, allocations: 67.97 kB / 0.5615 GB, free: 40.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008999/0.5497, allocations: 13.04 MB / 0.5743 GB, free: 26.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5497, allocations: 15.92 kB / 0.5743 GB, free: 26.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008078/0.5578, allocations: 6.731 MB / 0.5808 GB, free: 19.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.559, allocations: 0.7891 MB / 0.5816 GB, free: 18.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004073/0.5594, allocations: 67.92 kB / 0.5817 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/0.5611, allocations: 187.7 kB / 0.5819 GB, free: 18.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000451/0.5616, allocations: 213.7 kB / 0.5821 GB, free: 18.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/0.5617, allocations: 83.97 kB / 0.5821 GB, free: 18.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002504/0.5642, allocations: 2.329 MB / 0.5844 GB, free: 16.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5643, allocations: 0 / 0.5844 GB, free: 16.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002776/0.567, allocations: 1.111 MB / 0.5855 GB, free: 14.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008477/0.5755, allocations: 7.484 MB / 0.5928 GB, free: 7.223 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005789/0.5813, allocations: 4.755 MB / 0.5975 GB, free: 2.352 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.5813, allocations: 8.062 kB / 0.5975 GB, free: 2.344 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003566/0.5849, allocations: 2.883 MB / 0.6003 GB, free: 15.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005311/0.5902, allocations: 0.8533 MB / 0.6011 GB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05535/0.6456, allocations: 34.8 MB / 0.6351 GB, free: 9.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003403/0.649, allocations: 3.413 MB / 0.6384 GB, free: 5.809 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002997/0.652, allocations: 2.264 MB / 0.6406 GB, free: 3.547 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6521, allocations: 4 kB / 0.6406 GB, free: 3.543 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.06/10.71, allocations: 256.2 MB / 0.8909 GB, free: 78.55 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)