Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.001587/0.001587, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001122/0.001121, allocations: 90.91 kB / 270.9 MB, free: 13.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003857, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09643/0.09683, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01955/0.1164, allocations: 11 MB / 385.6 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2693/0.3858, allocations: 4.306 MB / 390 MB, free: 9.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002475/0.3883, allocations: 66.19 kB / 390 MB, free: 9.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003852/0.3922, allocations: 0.7998 MB / 390.8 MB, free: 9.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00573/0.398, allocations: 1.19 MB / 392 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003187/0.4012, allocations: 0.6221 MB / 392.6 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00824/0.4094, allocations: 3.164 MB / 395.8 MB, free: 9.285 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005379/0.4149, allocations: 2.552 MB / 398.3 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003939/0.4189, allocations: 1.44 MB / 399.8 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005017/0.4239, allocations: 1.711 MB / 401.5 MB, free: 8.629 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001451/0.4254, allocations: 240.5 kB / 401.7 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003199/0.4286, allocations: 403.2 kB / 402.1 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001794/0.4305, allocations: 0.8693 MB / 403 MB, free: 8.496 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002452/0.4329, allocations: 0.8475 MB / 403.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.443, allocations: 6.293 MB / 410.1 MB, free: 5.285 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.4431, allocations: 7.938 kB / 410.1 MB, free: 5.277 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.4431, allocations: 0 / 410.1 MB, free: 5.277 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000247/0.4433, allocations: 0 / 410.1 MB, free: 5.277 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01773/0.4611, allocations: 4.285 MB / 414.4 MB, free: 2.918 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.4611, allocations: 8.875 kB / 414.4 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002131/0.4633, allocations: 0.497 MB / 414.9 MB, free: 2.773 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007413/0.4707, allocations: 0.8806 MB / 415.8 MB, free: 2.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007589/0.4784, allocations: 2.533 MB / 418.3 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003326/0.4787, allocations: 274.1 kB / 418.6 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001417/0.4802, allocations: 365.4 kB / 419 MB, free: 424 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01735/0.4975, allocations: 4.98 MB / 424 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001492/0.4977, allocations: 11.86 kB / 424 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000664/0.4984, allocations: 148 kB / 424.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002567/0.4987, allocations: 163.2 kB / 424.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01573/0.5144, allocations: 4.373 MB / 428.6 MB, free: 6.691 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0446/0.559, allocations: 15.94 MB / 444.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01335/0.5724, allocations: 7.787 MB / 452.4 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/0.5843, allocations: 4.033 MB / 456.4 MB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.91e-05/0.5844, allocations: 56.5 kB / 456.5 MB, free: 9.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=167): time 4.909e-06/0.5845, allocations: 0 / 456.5 MB, free: 9.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=170): time 0.03128/0.6157, allocations: 8.328 MB / 464.8 MB, free: 1.148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.6158, allocations: 73.41 kB / 464.9 MB, free: 1.066 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005129/0.621, allocations: 2.092 MB / 467 MB, free: 14.94 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004073/0.6214, allocations: 57.7 kB / 467 MB, free: 14.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001528/0.623, allocations: 1.515 MB / 468.5 MB, free: 13.35 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009062/0.6239, allocations: 0.5656 MB / 469.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.6241, allocations: 40 kB / 469.1 MB, free: 12.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002472/0.6244, allocations: 386.8 kB / 469.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002907/0.6273, allocations: 0.972 MB / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003351/0.6306, allocations: 1.459 MB / 471.9 MB, free: 9.727 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003436/0.6341, allocations: 1.193 MB / 473.1 MB, free: 8.539 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-05/0.6342, allocations: 6.406 kB / 473.1 MB, free: 8.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.009551/0.6437, allocations: 3.252 MB / 476.4 MB, free: 5.242 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.6438, allocations: 15.98 kB / 476.4 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-05/0.6438, allocations: 12 kB / 476.4 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003192/0.647, allocations: 0.7363 MB / 477.1 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/0.6501, allocations: 383.4 kB / 477.5 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01953/0.6696, allocations: 10.63 MB / 488.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/0.6724, allocations: 91.95 kB / 488.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002981/0.6727, allocations: 83.98 kB / 488.3 MB, free: 8.762 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (199): * Single equations (assignments): 194 * 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%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003588/0.6763, allocations: 1.22 MB / 489.5 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007262/0.677, allocations: 225.2 kB / 489.8 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0097/0.6867, allocations: 3.247 MB / 493 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-05/0.6868, allocations: 16 kB / 493 MB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.39e-05/0.6868, allocations: 12 kB / 493 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.187e-05/0.6869, allocations: 7.969 kB / 493 MB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01914/0.706, allocations: 6.663 MB / 499.7 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.7061, allocations: 0 / 499.7 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/0.7078, allocations: 195.9 kB / 499.9 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004017/0.7118, allocations: 0.9029 MB / 0.4891 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000195/0.712, allocations: 43.98 kB / 0.4891 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02625/0.7383, allocations: 15.05 MB / 0.5038 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.7384, allocations: 0 / 0.5038 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/0.7512, allocations: 4.747 MB / 0.5084 GB, free: 7.305 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/0.7531, allocations: 0.5254 MB / 0.509 GB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004788/0.7536, allocations: 44 kB / 0.509 GB, free: 6.715 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/0.7554, allocations: 79.94 kB / 0.5091 GB, free: 6.637 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006667/0.7561, allocations: 165.1 kB / 0.5092 GB, free: 6.473 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/0.7563, allocations: 44.55 kB / 0.5093 GB, free: 6.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003469/0.7598, allocations: 1.434 MB / 0.5107 GB, free: 4.977 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.7598, allocations: 0 / 0.5107 GB, free: 4.977 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004026/0.7638, allocations: 0.7109 MB / 0.5114 GB, free: 4.266 MB / 394.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: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 simulation (100): * Single equations (assignments): 94 * Array equations: 0 * 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 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(1,100.0%) 1,(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.01343/0.7773, allocations: 5.734 MB / 0.517 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008263/0.7856, allocations: 3.184 MB / 0.5201 GB, free: 11.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.7856, allocations: 0 / 0.5201 GB, free: 11.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005939/0.7916, allocations: 2.308 MB / 0.5223 GB, free: 8.766 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004294/0.7959, allocations: 0.5779 MB / 0.5229 GB, free: 8.184 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3341/1.13, allocations: 30.23 MB / 0.5524 GB, free: 114.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004044/1.134, allocations: 2.694 MB / 0.5551 GB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002866/1.137, allocations: 1.332 MB / 0.5564 GB, free: 112.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/1.137, allocations: 0 / 0.5564 GB, free: 112.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.287/5.424, allocations: 161.4 MB / 0.7139 GB, free: 129.8 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)