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_DOL_MultiPhase.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_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",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.001497/0.001501, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.871/1.871, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.0011/0.0011, allocations: 95.23 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003839, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3184, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.4962, allocations: 111.9 MB / 486.6 MB, free: 0.668 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.4965, allocations: 95.95 kB / 486.7 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.172/1.668, allocations: 182.6 MB / 0.6536 GB, free: 49.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.668, allocations: 0 / 0.6536 GB, free: 49.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007562/1.669, allocations: 193.3 kB / 0.6538 GB, free: 49.08 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03537/1.704, allocations: 8.353 MB / 0.6619 GB, free: 46.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/1.704, allocations: 14.03 kB / 0.6619 GB, free: 46.44 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004566/1.709, allocations: 1.107 MB / 0.663 GB, free: 46.35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01512/1.724, allocations: 1.831 MB / 0.6648 GB, free: 45.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0231/1.747, allocations: 6.991 MB / 0.6716 GB, free: 44.92 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007527/1.748, allocations: 0.5968 MB / 0.6722 GB, free: 44.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003251/1.751, allocations: 0.7861 MB / 0.673 GB, free: 44.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03635/1.788, allocations: 10.99 MB / 0.6837 GB, free: 44.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003757/1.788, allocations: 7.562 kB / 0.6837 GB, free: 44.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00221/1.79, allocations: 343.6 kB / 0.684 GB, free: 44.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004369/1.791, allocations: 370.6 kB / 0.6844 GB, free: 44.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0286/1.819, allocations: 9.314 MB / 0.6935 GB, free: 43.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08297/1.902, allocations: 34.56 MB / 0.7272 GB, free: 31.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0287/1.931, allocations: 19.86 MB / 0.7466 GB, free: 14.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02148/1.953, allocations: 7.988 MB / 0.7544 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.038e-05/1.953, allocations: 71.14 kB / 0.7545 GB, free: 10.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=343): time 6.091e-06/1.953, allocations: 0 / 0.7545 GB, free: 10.28 MB / 426.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=377): time 0.06827/2.021, allocations: 17.77 MB / 0.7719 GB, free: 2.398 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/2.021, allocations: 92.62 kB / 0.7719 GB, free: 2.328 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009911/2.031, allocations: 3.848 MB / 0.7757 GB, free: 15.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008362/2.032, allocations: 93.7 kB / 0.7758 GB, free: 15.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003627/2.036, allocations: 3.221 MB / 0.7789 GB, free: 12.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002098/2.038, allocations: 1.268 MB / 0.7802 GB, free: 11.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005311/2.038, allocations: 84 kB / 0.7803 GB, free: 11.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003914/2.039, allocations: 478.1 kB / 0.7807 GB, free: 11.28 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006239/2.045, allocations: 2.014 MB / 0.7827 GB, free: 9.555 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007747/2.053, allocations: 3.027 MB / 0.7856 GB, free: 6.461 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007772/2.061, allocations: 2.524 MB / 0.7881 GB, free: 4.184 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.678e-05/2.061, allocations: 12 kB / 0.7881 GB, free: 4.172 MB / 442.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.02207/2.083, allocations: 6.487 MB / 0.7944 GB, free: 15.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.069e-05/2.083, allocations: 20 kB / 0.7945 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.28e-05/2.083, allocations: 28.69 kB / 0.7945 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005154/2.088, allocations: 1.143 MB / 0.7956 GB, free: 14.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006989/2.095, allocations: 0.8416 MB / 0.7964 GB, free: 13.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3424/2.438, allocations: 18.44 MB / 0.8144 GB, free: 71.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005502/2.443, allocations: 195.3 kB / 0.8146 GB, free: 71.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005471/2.444, allocations: 164.7 kB / 0.8148 GB, free: 71.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 132 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (442): * Single equations (assignments): 433 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(3,100.0%) 31,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,68.8%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006583/2.45, allocations: 2.621 MB / 0.8173 GB, free: 71.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/2.452, allocations: 468.5 kB / 0.8178 GB, free: 71.38 MB / 458.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01697/2.469, allocations: 6.372 MB / 0.824 GB, free: 70.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.462e-05/2.469, allocations: 36.59 kB / 0.824 GB, free: 70.91 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-05/2.469, allocations: 26.12 kB / 0.8241 GB, free: 70.91 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.389e-05/2.469, allocations: 17.86 kB / 0.8241 GB, free: 70.91 MB / 458.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[1] ; aimc3.is[2] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03569/2.505, allocations: 14.26 MB / 0.838 GB, free: 69.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.54e-05/2.505, allocations: 3.812 kB / 0.838 GB, free: 69.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004301/2.509, allocations: 483.2 kB / 0.8385 GB, free: 69.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00646/2.515, allocations: 1.505 MB / 0.8399 GB, free: 69.83 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006063/2.516, allocations: 97.72 kB / 0.84 GB, free: 69.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0384/2.554, allocations: 25.82 MB / 0.8653 GB, free: 57.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/2.555, allocations: 6.875 kB / 0.8653 GB, free: 57.83 MB / 458.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02332/2.578, allocations: 9.569 MB / 0.8746 GB, free: 55.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003653/2.582, allocations: 1.023 MB / 0.8756 GB, free: 54.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00155/2.583, allocations: 90.36 kB / 0.8757 GB, free: 54.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004899/2.588, allocations: 201.4 kB / 0.8759 GB, free: 54.85 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00145/2.59, allocations: 357.2 kB / 0.8762 GB, free: 54.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004285/2.59, allocations: 107.1 kB / 0.8763 GB, free: 54.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007365/2.597, allocations: 2.949 MB / 0.8792 GB, free: 53.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.11e-07/2.597, allocations: 0 / 0.8792 GB, free: 53.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008186/2.606, allocations: 1.55 MB / 0.8807 GB, free: 53.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.is[3],aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.stator.zeroInductor.i0,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 232 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(5,72.0%) 29,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 1,(6,72.2%) 46,(1,100.0%) 1,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of Backend phase and start with SimCode phase: time 0.02523/2.631, allocations: 11.4 MB / 0.8918 GB, free: 47.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01633/2.647, allocations: 6.412 MB / 0.8981 GB, free: 44.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/2.647, allocations: 6.594 kB / 0.8981 GB, free: 44.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01127/2.659, allocations: 4.41 MB / 0.9024 GB, free: 42.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008285/2.667, allocations: 1.169 MB / 0.9036 GB, free: 41.81 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1263/2.793, allocations: 66.77 MB / 0.9688 GB, free: 3.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009646/2.803, allocations: 5.18 MB / 0.9738 GB, free: 15.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007848/2.811, allocations: 3.121 MB / 0.9769 GB, free: 13.08 MB / 490.7 MB Notification: Performance of SimCode: time 2.014e-06/2.811, allocations: 0 / 0.9769 GB, free: 13.08 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.564/9.374, allocations: 476.3 MB / 1.442 GB, free: 81.53 MB / 0.4949 GB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1)