Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",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.0009585/0.0009582, allocations: 93.89 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.0009346/0.0009347, allocations: 178 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.265/1.265, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004069/0.0004069, allocations: 15.28 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08154/0.08195, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01051/0.09252, allocations: 10.96 MB / 339.4 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007365/0.09992, allocations: 4.608 MB / 344 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001495/0.1015, allocations: 67.69 kB / 344.1 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002084/0.1036, allocations: 0.8007 MB / 344.9 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003476/0.1071, allocations: 1.215 MB / 346.1 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.1088, allocations: 0.6743 MB / 346.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004617/0.1134, allocations: 2.956 MB / 349.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002474/0.1159, allocations: 2.266 MB / 352 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00194/0.1179, allocations: 1.354 MB / 353.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.1197, allocations: 1.622 MB / 354.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003354/0.1201, allocations: 220 kB / 355.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.1212, allocations: 0.5151 MB / 355.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007749/0.122, allocations: 0.9462 MB / 356.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007706/0.1228, allocations: 0.8004 MB / 357.4 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00532/0.1281, allocations: 5.906 MB / 363.3 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1282, allocations: 0 / 363.3 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1282, allocations: 0 / 363.3 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001692/0.1284, allocations: 0 / 363.3 MB, free: 0.9492 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01004/0.1384, allocations: 4.24 MB / 367.6 MB, free: 12.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.1385, allocations: 12.03 kB / 367.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001033/0.1395, allocations: 0.5379 MB / 368.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004108/0.1436, allocations: 0.8887 MB / 369 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004526/0.1482, allocations: 2.511 MB / 371.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.1484, allocations: 254.8 kB / 371.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005426/0.1489, allocations: 335.9 kB / 372.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007231/0.1561, allocations: 4.529 MB / 376.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.949e-05/0.1562, allocations: 11.91 kB / 376.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002903/0.1565, allocations: 136 kB / 376.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/0.1567, allocations: 154.8 kB / 376.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1655/0.3222, allocations: 3.9 MB / 380.8 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02404/0.3463, allocations: 14.25 MB / 395.1 MB, free: 39.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005745/0.3521, allocations: 6.938 MB / 402 MB, free: 32.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005624/0.3578, allocations: 3.647 MB / 405.7 MB, free: 30.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.3578, allocations: 53.25 kB / 405.7 MB, free: 29.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=169): time 3.116e-06/0.3578, allocations: 3.938 kB / 405.7 MB, free: 29.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=189): time 0.01336/0.3712, allocations: 8.066 MB / 413.8 MB, free: 25.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.3713, allocations: 68.91 kB / 413.8 MB, free: 25.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002513/0.3738, allocations: 2.57 MB / 416.4 MB, free: 23.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.3739, allocations: 57.7 kB / 416.5 MB, free: 23.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006823/0.3746, allocations: 1.619 MB / 418.1 MB, free: 21.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003049/0.3749, allocations: 0.6302 MB / 418.7 MB, free: 20.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.78e-05/0.375, allocations: 40 kB / 418.8 MB, free: 20.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.163e-05/0.3751, allocations: 385.8 kB / 419.1 MB, free: 20.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.3764, allocations: 0.9058 MB / 420 MB, free: 19.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.3777, allocations: 1.289 MB / 421.3 MB, free: 18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.3791, allocations: 1.123 MB / 422.5 MB, free: 16.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3791, allocations: 0 / 422.5 MB, free: 16.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004381/0.3835, allocations: 3.066 MB / 425.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3835, allocations: 8 kB / 425.5 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.3836, allocations: 12 kB / 425.5 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.3848, allocations: 0.5603 MB / 426.1 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/0.3864, allocations: 435.3 kB / 426.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007033/0.3934, allocations: 7.231 MB / 433.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/0.3958, allocations: 88.02 kB / 433.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003725/0.3962, allocations: 75.97 kB / 433.9 MB, free: 5.141 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (199): * Single equations (assignments): 195 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,63.3%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002041/0.3983, allocations: 1.157 MB / 435.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006427/0.3989, allocations: 252.8 kB / 435.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0046/0.4036, allocations: 2.91 MB / 438.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-05/0.4036, allocations: 27.92 kB / 438.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.4036, allocations: 8 kB / 438.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.4036, allocations: 7.969 kB / 438.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009785/0.4134, allocations: 6.337 MB / 444.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.4135, allocations: 0 / 444.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.4147, allocations: 287.7 kB / 444.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.4162, allocations: 0.6201 MB / 445.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.4163, allocations: 49.62 kB / 445.6 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.4266, allocations: 10.78 MB / 456.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4267, allocations: 0 / 456.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006751/0.4334, allocations: 4.242 MB / 460.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.4347, allocations: 0.5407 MB / 461.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/0.435, allocations: 36.25 kB / 461.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.4361, allocations: 99.92 kB / 461.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/0.4364, allocations: 137.7 kB / 461.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.4365, allocations: 61.84 kB / 461.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.4388, allocations: 1.803 MB / 463.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4388, allocations: 0 / 463.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00216/0.441, allocations: 0.6888 MB / 463.9 MB, free: 6.418 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * 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 (129): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007953/0.4489, allocations: 5.383 MB / 469.3 MB, free: 1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004912/0.4539, allocations: 2.846 MB / 472.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.4539, allocations: 5.812 kB / 472.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003021/0.457, allocations: 1.969 MB / 474.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/0.4593, allocations: 0.5276 MB / 474.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04341/0.5028, allocations: 28.58 MB / 0.4915 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002225/0.505, allocations: 2.714 MB / 0.4941 GB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001714/0.5068, allocations: 0.4927 MB / 0.4946 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.5084, allocations: 1.425 MB / 0.496 GB, free: 8.93 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5084, allocations: 4 kB / 0.496 GB, free: 8.926 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2371/0.7455, allocations: 61.24 MB / 0.5558 GB, free: 136.6 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.7458, allocations: 268 kB / 0.556 GB, free: 136.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.314/4.06, allocations: 1.312 kB / 0.556 GB, free: 136.3 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) Environment - environmentSimulation: