Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009655/0.0009655, allocations: 96.48 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008461/0.0008464, allocations: 181.2 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004451/0.0004451, allocations: 12 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09524, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01104/0.1063, allocations: 11.01 MB / 339.4 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007728/0.1141, allocations: 4.311 MB / 343.7 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.1161, allocations: 67.69 kB / 343.8 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002477/0.1186, allocations: 0.7968 MB / 344.6 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003721/0.1223, allocations: 1.199 MB / 345.8 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001805/0.1241, allocations: 0.6197 MB / 346.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005529/0.1297, allocations: 3.159 MB / 349.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003524/0.1332, allocations: 2.557 MB / 352.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002764/0.136, allocations: 1.444 MB / 353.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002893/0.1389, allocations: 1.712 MB / 355.3 MB, free: 9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006703/0.1396, allocations: 236 kB / 355.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00137/0.141, allocations: 407.7 kB / 355.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000753/0.1418, allocations: 0.8644 MB / 356.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.1428, allocations: 0.8512 MB / 357.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006139/0.149, allocations: 6.291 MB / 363.9 MB, free: 344 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.149, allocations: 0 / 363.9 MB, free: 344 kB / 302.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.1491, allocations: 0 / 363.9 MB, free: 344 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00021/0.1493, allocations: 0 / 363.9 MB, free: 344 kB / 302.1 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.01241/0.1617, allocations: 4.288 MB / 368.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1617, allocations: 8.031 kB / 368.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001688/0.1634, allocations: 0.5022 MB / 368.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004759/0.1682, allocations: 0.881 MB / 369.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005636/0.1739, allocations: 2.522 MB / 372.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002418/0.1741, allocations: 275.2 kB / 372.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007548/0.1749, allocations: 363.9 kB / 372.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008738/0.1836, allocations: 4.99 MB / 377.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.927e-05/0.1838, allocations: 7.906 kB / 377.8 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000325/0.1841, allocations: 144 kB / 377.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001399/0.1842, allocations: 163.2 kB / 378.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1855/0.3698, allocations: 4.37 MB / 382.4 MB, free: 46.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.026/0.3958, allocations: 15.94 MB / 398.4 MB, free: 36.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00604/0.4019, allocations: 7.784 MB / 406.2 MB, free: 29.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008396/0.4104, allocations: 4.038 MB / 410.2 MB, free: 26.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.806e-05/0.4104, allocations: 60.39 kB / 410.3 MB, free: 26.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=167): time 6.141e-06/0.4105, allocations: 0 / 410.3 MB, free: 26.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=170): time 0.02011/0.4306, allocations: 8.323 MB / 418.6 MB, free: 20.44 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.4307, allocations: 73.41 kB / 418.6 MB, free: 20.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002829/0.4335, allocations: 2.1 MB / 420.7 MB, free: 18.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.4337, allocations: 53.7 kB / 420.8 MB, free: 18.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008067/0.4345, allocations: 1.608 MB / 422.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003359/0.4348, allocations: 0.5637 MB / 423 MB, free: 15.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.4349, allocations: 36 kB / 423 MB, free: 15.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.435, allocations: 381.9 kB / 423.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.4363, allocations: 0.9759 MB / 424.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.4377, allocations: 1.457 MB / 425.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.4391, allocations: 1.197 MB / 427 MB, free: 11.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.4392, allocations: 4 kB / 427 MB, free: 11.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.00438/0.4435, allocations: 3.394 MB / 430.4 MB, free: 8.301 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.4436, allocations: 12 kB / 430.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.4436, allocations: 16 kB / 430.4 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001501/0.4451, allocations: 0.7314 MB / 431.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.4465, allocations: 383.4 kB / 431.5 MB, free: 7.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009654/0.4562, allocations: 10.63 MB / 442.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.4579, allocations: 91.95 kB / 442.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.4581, allocations: 79.98 kB / 442.3 MB, free: 11.84 MB / 334.1 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.002255/0.4603, allocations: 1.22 MB / 443.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004174/0.4608, allocations: 233.1 kB / 443.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005502/0.4663, allocations: 3.241 MB / 447 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.4663, allocations: 16 kB / 447 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.4663, allocations: 12 kB / 447.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.4663, allocations: 7.969 kB / 447.1 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.4769, allocations: 6.667 MB / 453.7 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.477, allocations: 7.984 kB / 453.7 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008491/0.4778, allocations: 191.9 kB / 453.9 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002096/0.4799, allocations: 0.8937 MB / 454.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/0.4801, allocations: 43.98 kB / 454.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01542/0.4955, allocations: 15.06 MB / 469.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.4955, allocations: 7.984 kB / 469.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007286/0.5028, allocations: 4.729 MB / 474.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/0.5042, allocations: 0.5293 MB / 475.2 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/0.5044, allocations: 44 kB / 475.2 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000955/0.5054, allocations: 83.94 kB / 475.3 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004163/0.5058, allocations: 170 kB / 475.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.833e-05/0.5059, allocations: 43.98 kB / 475.5 MB, free: 9.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.5081, allocations: 1.434 MB / 477 MB, free: 8.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5081, allocations: 0 / 477 MB, free: 8.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002433/0.5105, allocations: 0.7031 MB / 477.7 MB, free: 7.367 MB / 366.1 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.007412/0.5179, allocations: 5.737 MB / 483.4 MB, free: 1.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004814/0.5228, allocations: 3.179 MB / 486.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.5228, allocations: 1.938 kB / 486.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003366/0.5262, allocations: 2.321 MB / 488.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002615/0.5288, allocations: 0.5801 MB / 489.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0423/0.5711, allocations: 30.32 MB / 0.5076 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002531/0.5737, allocations: 2.748 MB / 0.5103 GB, free: 8.805 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001664/0.5754, allocations: 479.4 kB / 0.5108 GB, free: 8.332 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.577, allocations: 1.319 MB / 0.512 GB, free: 7.012 MB / 414.1 MB Notification: Performance of SimCode: time 1.353e-06/0.577, allocations: 0 / 0.512 GB, free: 7.012 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.265/0.842, allocations: 60.71 MB / 0.5713 GB, free: 120.6 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.8422, allocations: 215.6 kB / 0.5715 GB, free: 120.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/3.622, allocations: 7.969 kB / 0.5716 GB, free: 120.4 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat