Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 98.61 kB / 15.05 MB, free: 1.105 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.001051/0.001051, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.4 MB / 222.1 MB, free: 5.523 MB / 174.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.0005082/0.0005083, allocations: 10.81 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2664, allocations: 47.59 MB / 326.5 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01351/0.28, allocations: 12.2 MB / 338.7 MB, free: 7.273 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.2922, allocations: 4.869 MB / 343.5 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003398/0.2957, allocations: 83.62 kB / 343.6 MB, free: 2.312 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003137/0.2988, allocations: 0.9094 MB / 344.5 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0056/0.3044, allocations: 1.305 MB / 345.8 MB, free: 92 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.3069, allocations: 0.686 MB / 346.5 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005403/0.3123, allocations: 2.504 MB / 349 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003109/0.3154, allocations: 2.267 MB / 351.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.3176, allocations: 1.156 MB / 352.4 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002183/0.3198, allocations: 1.455 MB / 353.9 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003693/0.3202, allocations: 188 kB / 354.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001111/0.3213, allocations: 363.8 kB / 354.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007441/0.322, allocations: 0.767 MB / 355.2 MB, free: 6.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008137/0.3229, allocations: 0.703 MB / 355.9 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004845/0.3277, allocations: 5.01 MB / 360.9 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3277, allocations: 0 / 360.9 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3277, allocations: 0 / 360.9 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001833/0.3279, allocations: 0 / 360.9 MB, free: 0.9102 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.00903/0.337, allocations: 3.591 MB / 364.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.337, allocations: 8.031 kB / 364.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003025/0.3401, allocations: 0.6319 MB / 365.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004398/0.3445, allocations: 2.058 MB / 367.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.3447, allocations: 246.3 kB / 367.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004993/0.3452, allocations: 311.9 kB / 367.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007031/0.3523, allocations: 3.992 MB / 371.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-05/0.3524, allocations: 7.906 kB / 371.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003062/0.3527, allocations: 128 kB / 371.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/0.3529, allocations: 150.2 kB / 372 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005855/0.3587, allocations: 3.354 MB / 375.4 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01959/0.3783, allocations: 13.29 MB / 388.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004033/0.3824, allocations: 3.955 MB / 392.6 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004397/0.3868, allocations: 2.654 MB / 395.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.3869, allocations: 43.56 kB / 395.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 2.745e-06/0.3869, allocations: 0 / 395.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01066/0.3976, allocations: 6.075 MB / 401.4 MB, free: 7.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.3976, allocations: 68.72 kB / 401.5 MB, free: 7.008 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002776/0.4004, allocations: 1.802 MB / 403.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.4005, allocations: 49.7 kB / 403.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.4018, allocations: 1.505 MB / 404.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00044/0.4023, allocations: 0.4967 MB / 405.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.695e-05/0.4024, allocations: 40 kB / 405.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.4025, allocations: 377.9 kB / 405.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.4037, allocations: 0.773 MB / 406.5 MB, free: 1.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.4053, allocations: 1.378 MB / 407.9 MB, free: 248 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.4067, allocations: 1.025 MB / 408.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.4068, allocations: 11.95 kB / 408.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.003867/0.4106, allocations: 2.489 MB / 411.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.4107, allocations: 12 kB / 411.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/0.4107, allocations: 20 kB / 411.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003386/0.411, allocations: 114.5 kB / 411.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/0.4128, allocations: 0.4917 MB / 412 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.4138, allocations: 1.323 MB / 413.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.4151, allocations: 111.8 kB / 413.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.4153, allocations: 84 kB / 413.5 MB, free: 10.4 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (236): * Single equations (assignments): 233 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001693/0.417, allocations: 0.9853 MB / 414.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003262/0.4173, allocations: 205.5 kB / 414.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.4204, allocations: 2.001 MB / 416.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.4205, allocations: 12 kB / 416.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.4205, allocations: 4 kB / 416.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.4205, allocations: 7.969 kB / 416.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007675/0.4282, allocations: 5.035 MB / 421.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.4282, allocations: 4 kB / 421.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.4296, allocations: 335.8 kB / 422.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002845/0.4299, allocations: 94.52 kB / 422.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.792e-05/0.43, allocations: 28 kB / 422.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008883/0.4309, allocations: 1.28 MB / 423.5 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4309, allocations: 4 kB / 423.5 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00438/0.4353, allocations: 3.273 MB / 426.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.4363, allocations: 454.5 kB / 427.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002518/0.4366, allocations: 28 kB / 427.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008656/0.4374, allocations: 83.91 kB / 427.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.4376, allocations: 97.2 kB / 427.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.874e-05/0.4377, allocations: 39.98 kB / 427.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001747/0.4395, allocations: 1.21 MB / 428.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4395, allocations: 0 / 428.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001663/0.4411, allocations: 0.5312 MB / 429.2 MB, free: 10.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (146): * Single equations (assignments): 143 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003351/0.4415, allocations: 166.9 kB / 429.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003287/0.4448, allocations: 2.24 MB / 431.6 MB, free: 7.801 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4448, allocations: 4 kB / 431.6 MB, free: 7.797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/0.4464, allocations: 1.194 MB / 432.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.4484, allocations: 482 kB / 433.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009942/0.4584, allocations: 6.754 MB / 440 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.4604, allocations: 2.322 MB / 442.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001872/0.4623, allocations: 0.5091 MB / 442.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004016/0.4627, allocations: 151.4 kB / 443 MB, free: 12.24 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4627, allocations: 0 / 443 MB, free: 12.24 MB / 382.1 MB Notification: Performance of Templates: time 0.2069/0.6696, allocations: 23.52 MB / 466.5 MB, free: 109.4 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) Environment - environmentSimulation: