Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.01099/0.01099, allocations: 171.7 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 205.4 MB / 222.5 MB, free: 5.793 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.0004598/0.0004596, allocations: 12 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3101, allocations: 47.57 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01258/0.3228, allocations: 10.23 MB / 337.3 MB, free: 9.137 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008573/0.3314, allocations: 3.597 MB / 340.9 MB, free: 5.527 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00243/0.3339, allocations: 55.69 kB / 340.9 MB, free: 5.473 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00236/0.3363, allocations: 0.707 MB / 341.6 MB, free: 4.762 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003079/0.3394, allocations: 0.7654 MB / 342.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.3405, allocations: 411.5 kB / 342.8 MB, free: 3.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003635/0.3441, allocations: 3.27 MB / 346.1 MB, free: 312 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00283/0.347, allocations: 2.24 MB / 348.3 MB, free: 14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00169/0.3487, allocations: 1.023 MB / 349.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002028/0.3507, allocations: 1.47 MB / 350.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002824/0.351, allocations: 159.9 kB / 351 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006402/0.3517, allocations: 267.7 kB / 351.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008023/0.3525, allocations: 0.8059 MB / 352 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.3539, allocations: 1.4 MB / 353.4 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004208/0.3582, allocations: 4.562 MB / 358 MB, free: 4.285 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3582, allocations: 0 / 358 MB, free: 4.285 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3582, allocations: 0 / 358 MB, free: 4.285 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.025e-05/0.3583, allocations: 0 / 358 MB, free: 4.285 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.005631/0.3639, allocations: 2.853 MB / 360.8 MB, free: 1.367 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/0.364, allocations: 12.03 kB / 360.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008708/0.3649, allocations: 333.1 kB / 361.2 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.3678, allocations: 1.694 MB / 362.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.368, allocations: 201.3 kB / 363.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003737/0.3684, allocations: 251.8 kB / 363.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00563/0.374, allocations: 3.283 MB / 366.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.185e-05/0.3741, allocations: 0 / 366.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002296/0.3743, allocations: 108 kB / 366.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/0.3744, allocations: 124.9 kB / 366.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004629/0.3791, allocations: 2.744 MB / 369.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/0.3937, allocations: 10.56 MB / 380.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.3956, allocations: 1.354 MB / 381.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.3967, allocations: 0.7931 MB / 382.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002639/0.397, allocations: 199.2 kB / 382.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.3971, allocations: 43.56 kB / 382.5 MB, free: 11.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 4.188e-06/0.3971, allocations: 3.984 kB / 382.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01458/0.4117, allocations: 7.081 MB / 389.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.4117, allocations: 64.41 kB / 389.7 MB, free: 3.777 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002373/0.4141, allocations: 1.789 MB / 391.4 MB, free: 1.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.281e-05/0.4142, allocations: 45.7 kB / 391.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000857/0.4151, allocations: 1.283 MB / 392.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/0.4154, allocations: 418 kB / 393.2 MB, free: 228 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.4156, allocations: 129.6 kB / 393.3 MB, free: 92 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4157, allocations: 309.1 kB / 393.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.4169, allocations: 0.7808 MB / 394.4 MB, free: 15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.4184, allocations: 1.293 MB / 395.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002756/0.4212, allocations: 2.219 MB / 397.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.4212, allocations: 11.94 kB / 397.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003804/0.425, allocations: 2.474 MB / 400.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.425, allocations: 12 kB / 400.4 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.4251, allocations: 16 kB / 400.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006011/0.4257, allocations: 243.2 kB / 400.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.4271, allocations: 419.5 kB / 401.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/0.4297, allocations: 3.005 MB / 404.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.4311, allocations: 135.8 kB / 404.2 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.4312, allocations: 71.98 kB / 404.3 MB, free: 4.355 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00156/0.4328, allocations: 0.8134 MB / 405.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003138/0.4331, allocations: 193.7 kB / 405.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/0.4366, allocations: 2.046 MB / 407.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.4366, allocations: 12 kB / 407.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.4367, allocations: 0 / 407.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.4367, allocations: 3.984 kB / 407.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00762/0.4443, allocations: 4.748 MB / 412.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.4443, allocations: 3.984 kB / 412.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.4454, allocations: 263.6 kB / 412.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005677/0.446, allocations: 203.5 kB / 412.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.476e-05/0.4461, allocations: 24 kB / 412.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.4487, allocations: 2.978 MB / 415.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4488, allocations: 4.031 kB / 415.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005067/0.4538, allocations: 3.129 MB / 418.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008863/0.4547, allocations: 442.6 kB / 419.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.455, allocations: 31.98 kB / 419.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009151/0.4559, allocations: 95.88 kB / 419.2 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.4561, allocations: 76.83 kB / 419.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.676e-05/0.4562, allocations: 36.12 kB / 419.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002036/0.4582, allocations: 1.224 MB / 420.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.4582, allocations: 0 / 420.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00187/0.4601, allocations: 488 kB / 421 MB, free: 3.098 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004545/0.4606, allocations: 202.8 kB / 421.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0037/0.4643, allocations: 2.345 MB / 423.6 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4643, allocations: 0 / 423.6 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001848/0.4661, allocations: 1.348 MB / 424.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/0.469, allocations: 461.8 kB / 425.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009734/0.4787, allocations: 6.09 MB / 431.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00201/0.4808, allocations: 2.018 MB / 433.5 MB, free: 6.398 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001791/0.4826, allocations: 499.9 kB / 434 MB, free: 5.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004389/0.483, allocations: 139.4 kB / 434.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.553e-06/0.483, allocations: 0 / 434.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of Templates: time 0.2416/0.7247, allocations: 24.46 MB / 458.6 MB, free: 112.1 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1)