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.0008686/0.0008686, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.195/1.195, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007572/0.0007572, allocations: 89.48 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003028, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1921, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.009408/0.2016, allocations: 12.06 MB / 387.3 MB, free: 35.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00679/0.2084, allocations: 4.196 MB / 391.5 MB, free: 32.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.2101, allocations: 67.69 kB / 391.5 MB, free: 32.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.2119, allocations: 0.7729 MB / 392.3 MB, free: 31.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002654/0.2146, allocations: 1.142 MB / 393.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.216, allocations: 0.6272 MB / 394.1 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005014/0.221, allocations: 4.791 MB / 398.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003242/0.2243, allocations: 3.02 MB / 401.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.2267, allocations: 1.494 MB / 403.4 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002569/0.2292, allocations: 1.91 MB / 405.3 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005751/0.2298, allocations: 240 kB / 405.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001551/0.2314, allocations: 439.7 kB / 406 MB, free: 17.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006921/0.2321, allocations: 0.9069 MB / 406.9 MB, free: 16.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00205/0.2342, allocations: 1.95 MB / 408.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004533/0.2387, allocations: 6.334 MB / 415.1 MB, free: 8.574 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2387, allocations: 4 kB / 415.1 MB, free: 8.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.2387, allocations: 0 / 415.1 MB, free: 8.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001915/0.2389, allocations: 0 / 415.1 MB, free: 8.57 MB / 298.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.009806/0.2488, allocations: 4.261 MB / 419.4 MB, free: 4.238 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.2488, allocations: 8.031 kB / 419.4 MB, free: 4.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001039/0.2499, allocations: 0.4984 MB / 419.9 MB, free: 3.723 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004029/0.2539, allocations: 0.8858 MB / 420.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004399/0.2583, allocations: 2.581 MB / 423.4 MB, free: 204 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.2586, allocations: 275.5 kB / 423.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008159/0.2594, allocations: 367.8 kB / 424 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.2695, allocations: 5.009 MB / 429 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.802e-05/0.2696, allocations: 11.94 kB / 429 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003295/0.27, allocations: 147.9 kB / 429.2 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.2701, allocations: 163.2 kB / 429.3 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00789/0.278, allocations: 4.373 MB / 433.7 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02917/0.3072, allocations: 15.99 MB / 449.7 MB, free: 5.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007577/0.3149, allocations: 7.784 MB / 457.5 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00281/0.3177, allocations: 1.725 MB / 459.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008106/0.3258, allocations: 4.675 MB / 463.9 MB, free: 6.277 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.3259, allocations: 47.88 kB / 463.9 MB, free: 6.219 MB / 346.7 MB Notification: Performance of pre-optimization done (n=161): time 3.928e-06/0.3259, allocations: 0 / 463.9 MB, free: 6.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=164): time 0.01785/0.3438, allocations: 8.201 MB / 472.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.3439, allocations: 68.72 kB / 472.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003574/0.3475, allocations: 2.147 MB / 474.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001761/0.3476, allocations: 53.7 kB / 474.4 MB, free: 11.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.3489, allocations: 1.623 MB / 476 MB, free: 9.824 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005171/0.3494, allocations: 0.5468 MB / 476.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.3495, allocations: 40 kB / 476.6 MB, free: 9.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.3497, allocations: 389.8 kB / 477 MB, free: 8.844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001619/0.3513, allocations: 0.9487 MB / 477.9 MB, free: 7.895 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00185/0.3532, allocations: 1.457 MB / 479.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003552/0.3568, allocations: 2.514 MB / 481.9 MB, free: 3.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.3568, allocations: 4 kB / 481.9 MB, free: 3.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005575/0.3624, allocations: 3.363 MB / 485.3 MB, free: 88 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.3624, allocations: 8 kB / 485.3 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.1e-05/0.3625, allocations: 16.47 kB / 485.3 MB, free: 64 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001992/0.3645, allocations: 0.7315 MB / 486 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.3659, allocations: 371.4 kB / 486.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.3772, allocations: 10.42 MB / 496.8 MB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.3789, allocations: 95.95 kB / 496.9 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002769/0.3792, allocations: 83.98 kB / 497 MB, free: 3.828 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * 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 (195): * Single equations (assignments): 190 * 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.002404/0.3816, allocations: 1.204 MB / 498.2 MB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005451/0.3822, allocations: 225.3 kB / 498.4 MB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1531/0.5353, allocations: 3.179 MB / 0.4898 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.5353, allocations: 15.7 kB / 0.4898 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.838e-05/0.5354, allocations: 10.72 kB / 0.4899 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.205e-05/0.5354, allocations: 7.5 kB / 0.4899 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.5468, allocations: 6.578 MB / 0.4963 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.5468, allocations: 3.594 kB / 0.4963 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008169/0.5476, allocations: 174.4 kB / 0.4965 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002156/0.5498, allocations: 0.9027 MB / 0.4973 GB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.55, allocations: 48.22 kB / 0.4974 GB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01275/0.5627, allocations: 14.8 MB / 0.5118 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5627, allocations: 0 / 0.5118 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00609/0.5688, allocations: 4.53 MB / 0.5163 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/0.57, allocations: 0.516 MB / 0.5168 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00048/0.5705, allocations: 39.98 kB / 0.5168 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.5717, allocations: 82.31 kB / 0.5169 GB, free: 88.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004478/0.5722, allocations: 168.8 kB / 0.517 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.5723, allocations: 43.98 kB / 0.5171 GB, free: 87.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002355/0.5747, allocations: 1.465 MB / 0.5185 GB, free: 86.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5747, allocations: 0 / 0.5185 GB, free: 86.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002484/0.5772, allocations: 0.707 MB / 0.5192 GB, free: 85.8 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: 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 (94): * Single equations (assignments): 88 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(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.005987/0.5832, allocations: 5.146 MB / 0.5242 GB, free: 80.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003874/0.5871, allocations: 3.128 MB / 0.5273 GB, free: 77.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5871, allocations: 0 / 0.5273 GB, free: 77.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002647/0.5898, allocations: 2.28 MB / 0.5295 GB, free: 75.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00316/0.5929, allocations: 0.598 MB / 0.5301 GB, free: 74.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03371/0.6267, allocations: 20.52 MB / 0.5501 GB, free: 52.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002161/0.6289, allocations: 2.63 MB / 0.5527 GB, free: 50.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.6304, allocations: 1.331 MB / 0.554 GB, free: 48.84 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.6304, allocations: 4 kB / 0.554 GB, free: 48.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.941/7.572, allocations: 163.8 MB / 0.7139 GB, free: 90.59 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)