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.002246/0.002251, allocations: 186 kB / 16.4 MB, free: 5.746 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.928/1.928, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001101/0.001101, allocations: 99.75 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003794/0.0003795, allocations: 11.98 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3401, allocations: 47.56 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.5249, allocations: 110.4 MB / 485.1 MB, free: 2.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.5253, allocations: 95.92 kB / 485.2 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5913/1.117, allocations: 88.22 MB / 0.5599 GB, free: 55.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.117, allocations: 3.938 kB / 0.5599 GB, free: 55.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003673/1.117, allocations: 91.92 kB / 0.56 GB, free: 55.25 MB / 378.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.0164/1.133, allocations: 4.058 MB / 0.564 GB, free: 51.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/1.134, allocations: 15.97 kB / 0.564 GB, free: 51.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001989/1.136, allocations: 0.5022 MB / 0.5645 GB, free: 50.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006307/1.142, allocations: 0.7952 MB / 0.5653 GB, free: 49.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01252/1.154, allocations: 3.695 MB / 0.5689 GB, free: 46.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003307/1.155, allocations: 271.2 kB / 0.5691 GB, free: 45.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001411/1.156, allocations: 356 kB / 0.5695 GB, free: 45.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01502/1.171, allocations: 4.941 MB / 0.5743 GB, free: 40.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/1.172, allocations: 11.84 kB / 0.5743 GB, free: 40.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007053/1.172, allocations: 152 kB / 0.5745 GB, free: 40.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001811/1.172, allocations: 167.1 kB / 0.5746 GB, free: 40.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01317/1.186, allocations: 4.159 MB / 0.5787 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0387/1.224, allocations: 15.99 MB / 0.5943 GB, free: 19.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01097/1.235, allocations: 7.786 MB / 0.6019 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/1.245, allocations: 4.059 MB / 0.6059 GB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/1.246, allocations: 56.56 kB / 0.6059 GB, free: 6.629 MB / 378.7 MB Notification: Performance of pre-optimization done (n=167): time 4.549e-06/1.246, allocations: 0 / 0.6059 GB, free: 6.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=170): time 0.0288/1.274, allocations: 8.25 MB / 0.614 GB, free: 14.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/1.274, allocations: 69.41 kB / 0.614 GB, free: 14.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004836/1.279, allocations: 1.894 MB / 0.6159 GB, free: 12.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004072/1.28, allocations: 53.7 kB / 0.6159 GB, free: 12.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001545/1.281, allocations: 1.509 MB / 0.6174 GB, free: 10.58 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009634/1.282, allocations: 0.5661 MB / 0.618 GB, free: 10.01 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/1.283, allocations: 44 kB / 0.618 GB, free: 9.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002528/1.283, allocations: 386.8 kB / 0.6184 GB, free: 9.578 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002938/1.286, allocations: 0.9487 MB / 0.6193 GB, free: 8.629 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003389/1.289, allocations: 1.419 MB / 0.6207 GB, free: 7.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/1.293, allocations: 1.169 MB / 0.6218 GB, free: 5.855 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.68e-05/1.293, allocations: 4 kB / 0.6218 GB, free: 5.852 MB / 394.7 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.00978/1.302, allocations: 3.201 MB / 0.625 GB, free: 2.609 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/1.303, allocations: 12 kB / 0.625 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/1.303, allocations: 16.31 kB / 0.625 GB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003152/1.306, allocations: 0.7285 MB / 0.6257 GB, free: 1.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/1.309, allocations: 375.4 kB / 0.6261 GB, free: 1.473 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01963/1.328, allocations: 10.65 MB / 0.6365 GB, free: 6.293 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002753/1.331, allocations: 95.86 kB / 0.6365 GB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004762/1.332, allocations: 79.98 kB / 0.6366 GB, free: 6.121 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 (193): * Single equations (assignments): 188 * 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.003589/1.335, allocations: 1.208 MB / 0.6378 GB, free: 4.902 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007595/1.336, allocations: 225.3 kB / 0.638 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/1.347, allocations: 3.25 MB / 0.6412 GB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.899e-05/1.347, allocations: 16 kB / 0.6412 GB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.362e-05/1.347, allocations: 12 kB / 0.6412 GB, free: 1.336 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.034e-05/1.347, allocations: 7.969 kB / 0.6412 GB, free: 1.328 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3078/1.655, allocations: 6.676 MB / 0.6477 GB, free: 86.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/1.655, allocations: 9.891 kB / 0.6478 GB, free: 86.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/1.656, allocations: 187.5 kB / 0.6479 GB, free: 86.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00378/1.66, allocations: 0.9092 MB / 0.6488 GB, free: 86.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003195/1.66, allocations: 48.33 kB / 0.6489 GB, free: 86.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/1.682, allocations: 15.09 MB / 0.6636 GB, free: 78.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.682, allocations: 2.953 kB / 0.6636 GB, free: 78.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.694, allocations: 4.739 MB / 0.6682 GB, free: 77.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.696, allocations: 0.5255 MB / 0.6687 GB, free: 77.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000627/1.697, allocations: 35.59 kB / 0.6688 GB, free: 77.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/1.699, allocations: 95.88 kB / 0.6689 GB, free: 77.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006693/1.7, allocations: 163.9 kB / 0.669 GB, free: 77.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001973/1.7, allocations: 44.03 kB / 0.6691 GB, free: 77.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003859/1.704, allocations: 1.463 MB / 0.6705 GB, free: 77.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.704, allocations: 0 / 0.6705 GB, free: 77.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004221/1.708, allocations: 0.7351 MB / 0.6712 GB, free: 77.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(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.0138/1.722, allocations: 5.924 MB / 0.677 GB, free: 75.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008465/1.731, allocations: 3.154 MB / 0.6801 GB, free: 75.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.731, allocations: 2.688 kB / 0.6801 GB, free: 75.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005959/1.737, allocations: 2.316 MB / 0.6823 GB, free: 74.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004584/1.741, allocations: 0.5974 MB / 0.6829 GB, free: 73.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05433/1.796, allocations: 29.37 MB / 0.7116 GB, free: 53.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003995/1.8, allocations: 2.697 MB / 0.7142 GB, free: 52.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003045/1.803, allocations: 1.341 MB / 0.7156 GB, free: 51.17 MB / 410.7 MB Notification: Performance of SimCode: time 1.402e-06/1.803, allocations: 0 / 0.7156 GB, free: 51.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.372/6.175, allocations: 162.6 MB / 0.8743 GB, free: 91.82 MB / 442.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)