Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",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.00151/0.00151, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.906/1.906, 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.00107/0.00107, allocations: 99.53 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003822, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3258, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.5184, allocations: 118.9 MB / 493.5 MB, free: 9.715 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/0.5188, allocations: 91.95 kB / 493.6 MB, free: 9.625 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.558/1.077, allocations: 80.42 MB / 0.5606 GB, free: 55.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.256e-06/1.077, allocations: 0 / 0.5606 GB, free: 55.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003769/1.077, allocations: 99.86 kB / 0.5606 GB, free: 55.86 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01546/1.093, allocations: 3.842 MB / 0.5644 GB, free: 51.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/1.093, allocations: 12.03 kB / 0.5644 GB, free: 51.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002001/1.095, allocations: 497.3 kB / 0.5649 GB, free: 51.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004913/1.1, allocations: 0.6432 MB / 0.5655 GB, free: 50.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/1.112, allocations: 3.398 MB / 0.5688 GB, free: 47.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003166/1.113, allocations: 266.9 kB / 0.5691 GB, free: 47.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/1.114, allocations: 343.9 kB / 0.5694 GB, free: 46.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/1.127, allocations: 4.39 MB / 0.5737 GB, free: 42.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001708/1.128, allocations: 15.8 kB / 0.5737 GB, free: 42.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007847/1.128, allocations: 148 kB / 0.5739 GB, free: 42.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001997/1.129, allocations: 162.8 kB / 0.574 GB, free: 41.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/1.14, allocations: 3.517 MB / 0.5774 GB, free: 38.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03618/1.176, allocations: 14.59 MB / 0.5917 GB, free: 23.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0075/1.184, allocations: 5.378 MB / 0.5969 GB, free: 17.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009232/1.193, allocations: 3.298 MB / 0.6002 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/1.193, allocations: 47.81 kB / 0.6002 GB, free: 13.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=138): time 5.2e-06/1.193, allocations: 7.984 kB / 0.6002 GB, free: 13.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.02237/1.215, allocations: 7.139 MB / 0.6072 GB, free: 6.559 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/1.216, allocations: 68.72 kB / 0.6073 GB, free: 6.477 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004305/1.22, allocations: 1.849 MB / 0.6091 GB, free: 4.598 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003674/1.22, allocations: 53.7 kB / 0.6091 GB, free: 4.539 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/1.221, allocations: 1.539 MB / 0.6106 GB, free: 2.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007396/1.222, allocations: 0.5622 MB / 0.6112 GB, free: 2.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/1.222, allocations: 40 kB / 0.6112 GB, free: 2.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/1.223, allocations: 390.8 kB / 0.6116 GB, free: 1.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/1.225, allocations: 0.8668 MB / 0.6124 GB, free: 1.109 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002917/1.228, allocations: 1.461 MB / 0.6138 GB, free: 15.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003366/1.231, allocations: 1.134 MB / 0.615 GB, free: 14.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.443e-05/1.231, allocations: 8 kB / 0.615 GB, free: 14.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008948/1.24, allocations: 2.834 MB / 0.6177 GB, free: 11.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.083e-05/1.24, allocations: 15.94 kB / 0.6177 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-05/1.24, allocations: 20 kB / 0.6178 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/1.242, allocations: 439.2 kB / 0.6182 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003782/1.246, allocations: 479.2 kB / 0.6186 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/1.257, allocations: 5.67 MB / 0.6242 GB, free: 4.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/1.261, allocations: 119.9 kB / 0.6243 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005086/1.261, allocations: 92.11 kB / 0.6244 GB, free: 4.289 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (229): * Single equations (assignments): 226 * 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: 2 * 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: 2 {(6,63.9%) 24,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003447/1.265, allocations: 1.067 MB / 0.6254 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008019/1.265, allocations: 225.2 kB / 0.6256 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008517/1.274, allocations: 2.644 MB / 0.6282 GB, free: 336 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/1.274, allocations: 16 kB / 0.6282 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/1.274, allocations: 8 kB / 0.6282 GB, free: 312 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-05/1.274, allocations: 7.969 kB / 0.6282 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01901/1.293, allocations: 6.136 MB / 0.6342 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.159e-05/1.293, allocations: 4 kB / 0.6342 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00245/1.296, allocations: 255.6 kB / 0.6345 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002553/1.298, allocations: 0.5383 MB / 0.635 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003537/1.299, allocations: 35.98 kB / 0.635 GB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0166/1.315, allocations: 8.518 MB / 0.6434 GB, free: 316 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/1.315, allocations: 0 / 0.6434 GB, free: 316 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3457/1.661, allocations: 4.025 MB / 0.6473 GB, free: 85.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/1.663, allocations: 0.5072 MB / 0.6478 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007309/1.664, allocations: 28.59 kB / 0.6478 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002528/1.666, allocations: 89.97 kB / 0.6479 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004385/1.667, allocations: 123 kB / 0.648 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/1.667, allocations: 40.94 kB / 0.6481 GB, free: 85.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003308/1.67, allocations: 1.411 MB / 0.6494 GB, free: 84.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.67, allocations: 0 / 0.6494 GB, free: 84.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003776/1.674, allocations: 0.6772 MB / 0.6501 GB, free: 84.96 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (122): * Single equations (assignments): 119 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,68.0%) 24,(1,100.0%) 1,(3,88.9%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01116/1.685, allocations: 5.441 MB / 0.6554 GB, free: 83.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006955/1.692, allocations: 2.705 MB / 0.6581 GB, free: 83.06 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/1.692, allocations: 3.875 kB / 0.6581 GB, free: 83.06 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004564/1.697, allocations: 1.719 MB / 0.6597 GB, free: 82.67 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004226/1.701, allocations: 0.5163 MB / 0.6602 GB, free: 82.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05366/1.755, allocations: 31.97 MB / 0.6915 GB, free: 62.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003879/1.759, allocations: 2.48 MB / 0.6939 GB, free: 61.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003347/1.762, allocations: 1.353 MB / 0.6952 GB, free: 61.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/1.762, allocations: 0 / 0.6952 GB, free: 61.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.641/5.403, allocations: 107.3 MB / 0.8 GB, free: 9.965 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)