Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00119/0.00119, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001242, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001506, allocations: 58.73 kB / 307.1 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1101, allocations: 50.54 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2235/0.3336, allocations: 24.68 MB / 382.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01727/0.351, allocations: 7.868 MB / 390.2 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007824/0.3589, allocations: 166.6 kB / 390.3 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0139/0.3728, allocations: 5.678 MB / 396 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01063/0.3835, allocations: 2.557 MB / 398.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008075/0.3916, allocations: 1.845 MB / 400.4 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.017/0.4086, allocations: 7.803 MB / 408.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03651/0.4452, allocations: 14.6 MB / 422.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008407/0.4536, allocations: 3.95 MB / 426.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008857/0.4625, allocations: 4.567 MB / 431.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003756/0.4663, allocations: 1.109 MB / 432.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005553/0.4719, allocations: 1.472 MB / 433.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003604/0.4755, allocations: 2.237 MB / 436.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008759/0.4843, allocations: 4.334 MB / 440.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01829/0.5026, allocations: 14.97 MB / 455.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.5027, allocations: 0 / 455.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5027, allocations: 0 / 455.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004357/0.5032, allocations: 4 kB / 455.4 MB, free: 10.29 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02885/0.532, allocations: 9.225 MB / 464.7 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.5321, allocations: 8.031 kB / 464.7 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002386/0.5345, allocations: 0.9914 MB / 465.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02869/0.5632, allocations: 5.302 MB / 471 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009836/0.5731, allocations: 4.617 MB / 475.6 MB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000445/0.5736, allocations: 0.5136 MB / 476.1 MB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002734/0.5763, allocations: 0.6717 MB / 476.8 MB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02448/0.6008, allocations: 11.16 MB / 487.9 MB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000257/0.6011, allocations: 7.906 kB / 487.9 MB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00198/0.6031, allocations: 284 kB / 488.2 MB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004778/0.6036, allocations: 430.5 kB / 488.6 MB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02222/0.6258, allocations: 10.71 MB / 499.4 MB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0586/0.6844, allocations: 36.28 MB / 0.5231 GB, free: 8.836 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1865/0.871, allocations: 11.89 MB / 0.5347 GB, free: 129.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007736/0.8788, allocations: 2.846 MB / 0.5375 GB, free: 129.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005324/0.8794, allocations: 255.3 kB / 0.5377 GB, free: 129.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.401e-05/0.8795, allocations: 75.77 kB / 0.5378 GB, free: 129.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 9.668e-06/0.8795, allocations: 0 / 0.5378 GB, free: 129.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.067/0.9465, allocations: 15.82 MB / 0.5532 GB, free: 124.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.9467, allocations: 142.4 kB / 0.5534 GB, free: 124 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006001/0.9527, allocations: 2.79 MB / 0.5561 GB, free: 122.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006695/0.9534, allocations: 93.52 kB / 0.5562 GB, free: 122.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/0.9554, allocations: 2.877 MB / 0.559 GB, free: 120.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001528/0.9569, allocations: 1.269 MB / 0.5602 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001856/0.9588, allocations: 0.8939 MB / 0.5611 GB, free: 119.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.534e-05/0.9588, allocations: 301.1 kB / 0.5614 GB, free: 119 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005416/0.9643, allocations: 2.317 MB / 0.5637 GB, free: 118.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00601/0.9703, allocations: 3.91 MB / 0.5675 GB, free: 115.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/0.9824, allocations: 6.713 MB / 0.574 GB, free: 110.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.644e-05/0.9825, allocations: 15.59 kB / 0.5741 GB, free: 110.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01745/1, allocations: 7.091 MB / 0.581 GB, free: 107 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.401e-05/1, allocations: 34.61 kB / 0.581 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001028/1, allocations: 48 kB / 0.5811 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005778/1.006, allocations: 1.243 MB / 0.5823 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0068/1.013, allocations: 1.061 MB / 0.5833 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004861/1.018, allocations: 2.358 MB / 0.5856 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006038/1.024, allocations: 291.5 kB / 0.5859 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008162/1.025, allocations: 224 kB / 0.5861 GB, free: 102.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.009554/1.034, allocations: 4.515 MB / 0.5905 GB, free: 97.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00541/1.04, allocations: 3.907 MB / 0.5943 GB, free: 92.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006708/1.046, allocations: 6.683 MB / 0.6009 GB, free: 85.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.55e-05/1.046, allocations: 16 kB / 0.6009 GB, free: 85.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.009115/1.056, allocations: 7.045 MB / 0.6077 GB, free: 78.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/1.056, allocations: 28 kB / 0.6078 GB, free: 78.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.075e-05/1.056, allocations: 52 kB / 0.6078 GB, free: 78.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/1.059, allocations: 1.197 MB / 0.609 GB, free: 77.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003387/1.062, allocations: 1.061 MB / 0.61 GB, free: 76.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/1.065, allocations: 2.292 MB / 0.6123 GB, free: 73.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003406/1.068, allocations: 271.7 kB / 0.6125 GB, free: 73.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003803/1.068, allocations: 224.6 kB / 0.6127 GB, free: 73.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.0009488/1.069, allocations: 0.4911 MB / 0.6132 GB, free: 72.81 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006854/1.07, allocations: 355.7 kB / 0.6136 GB, free: 72.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007876/1.078, allocations: 5.846 MB / 0.6193 GB, free: 66.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/1.078, allocations: 39.94 kB / 0.6193 GB, free: 66.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/1.078, allocations: 1.312 kB / 0.6193 GB, free: 66.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.794e-05/1.078, allocations: 23.92 kB / 0.6193 GB, free: 66.53 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01672/1.095, allocations: 12.91 MB / 0.6319 GB, free: 53.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/1.095, allocations: 6.516 kB / 0.6319 GB, free: 53.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00243/1.097, allocations: 0.671 MB / 0.6326 GB, free: 52.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002821/1.1, allocations: 0.9819 MB / 0.6336 GB, free: 51.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002396/1.1, allocations: 83.97 kB / 0.6336 GB, free: 51.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002296/1.103, allocations: 2.051 MB / 0.6356 GB, free: 49.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/1.103, allocations: 0 / 0.6356 GB, free: 49.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/1.113, allocations: 8.491 MB / 0.6439 GB, free: 41.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/1.115, allocations: 0.8442 MB / 0.6448 GB, free: 40.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004674/1.116, allocations: 68 kB / 0.6448 GB, free: 40.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/1.117, allocations: 207.8 kB / 0.645 GB, free: 40.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003964/1.118, allocations: 230.7 kB / 0.6452 GB, free: 39.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001921/1.118, allocations: 112 kB / 0.6453 GB, free: 39.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002323/1.12, allocations: 1.867 MB / 0.6472 GB, free: 37.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.12, allocations: 4 kB / 0.6472 GB, free: 37.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005518/1.126, allocations: 2.093 MB / 0.6492 GB, free: 35.71 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * 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 (346): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01064/1.136, allocations: 9.2 MB / 0.6582 GB, free: 26.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02752/1.164, allocations: 14.77 MB / 0.6726 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/1.164, allocations: 1.812 kB / 0.6726 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003935/1.168, allocations: 2.626 MB / 0.6752 GB, free: 9.113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003463/1.172, allocations: 0.7957 MB / 0.676 GB, free: 8.348 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2211/1.393, allocations: 49.09 MB / 0.7239 GB, free: 155.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004256/1.397, allocations: 4.45 MB / 0.7283 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006068/1.403, allocations: 2.284 MB / 0.7305 GB, free: 153.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00268/1.406, allocations: 2.428 MB / 0.7329 GB, free: 151.7 MB / 478.1 MB Notification: Performance of SimCode: time 5.91e-07/1.406, allocations: 0 / 0.7329 GB, free: 151.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1298/1.535, allocations: 107.1 MB / 0.8374 GB, free: 56.55 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/14.7, allocations: 7.953 kB / 0.8375 GB, free: 56.55 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)