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.001177/0.001178, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 196 kB / 16.53 MB, free: 6.699 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.567/1.567, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001316/0.001316, allocations: 60.39 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.305, allocations: 46.63 MB / 325.3 MB, free: 1.977 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01723/0.3223, allocations: 10.88 MB / 336.2 MB, free: 9.113 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01165/0.3341, allocations: 3.671 MB / 339.9 MB, free: 5.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004129/0.3382, allocations: 55.75 kB / 339.9 MB, free: 5.375 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002927/0.3413, allocations: 0.8111 MB / 340.7 MB, free: 4.559 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005178/0.3465, allocations: 0.8619 MB / 341.6 MB, free: 3.691 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00168/0.3482, allocations: 475.2 kB / 342.1 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004755/0.353, allocations: 2.935 MB / 345 MB, free: 284 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003183/0.3562, allocations: 2.683 MB / 347.7 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002126/0.3583, allocations: 1.363 MB / 349 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002117/0.3604, allocations: 1.755 MB / 350.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005377/0.361, allocations: 376 kB / 351.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009484/0.3619, allocations: 475.8 kB / 351.6 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.363, allocations: 1.071 MB / 352.7 MB, free: 8.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001935/0.365, allocations: 1.672 MB / 354.4 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00574/0.3707, allocations: 4.809 MB / 359.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.156e-05/0.3708, allocations: 0 / 359.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3708, allocations: 0 / 359.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002324/0.371, allocations: 0 / 359.2 MB, free: 1.996 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.009532/0.3806, allocations: 3.394 MB / 362.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.75e-05/0.3807, allocations: 15.89 kB / 362.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.3818, allocations: 333.1 kB / 362.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003743/0.3856, allocations: 1.694 MB / 364.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002358/0.3859, allocations: 201.3 kB / 364.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004368/0.3863, allocations: 247.9 kB / 365.1 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006519/0.3928, allocations: 3.283 MB / 368.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.187e-05/0.3929, allocations: 7.938 kB / 368.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.3932, allocations: 108 kB / 368.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001648/0.3934, allocations: 124.9 kB / 368.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005027/0.3984, allocations: 2.744 MB / 371.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01678/0.4152, allocations: 10.51 MB / 381.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001819/0.4171, allocations: 1.354 MB / 383.2 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.4183, allocations: 0.7776 MB / 384 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000312/0.4186, allocations: 207.2 kB / 384.2 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.4187, allocations: 43.56 kB / 384.2 MB, free: 8.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.886e-06/0.4187, allocations: 0 / 384.2 MB, free: 8.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01667/0.4354, allocations: 7.034 MB / 391.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.4355, allocations: 68.41 kB / 391.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003834/0.4393, allocations: 1.789 MB / 393.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001546/0.4395, allocations: 45.7 kB / 393.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.4406, allocations: 1.275 MB / 394.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004466/0.4411, allocations: 425.9 kB / 394.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000552/0.4417, allocations: 299.2 kB / 395.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4418, allocations: 309.1 kB / 395.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.443, allocations: 0.7769 MB / 396.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.4447, allocations: 1.293 MB / 397.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.448, allocations: 2.215 MB / 399.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-05/0.448, allocations: 4 kB / 399.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004962/0.453, allocations: 2.474 MB / 402.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.701e-05/0.453, allocations: 16.67 kB / 402.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.447e-05/0.4531, allocations: 20 kB / 402.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007078/0.4538, allocations: 235.3 kB / 402.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.4553, allocations: 419.3 kB / 402.9 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003485/0.4588, allocations: 3.23 MB / 406.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/0.4611, allocations: 143.8 kB / 406.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/0.4613, allocations: 68 kB / 406.3 MB, free: 1.227 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.002153/0.4634, allocations: 0.8095 MB / 407.1 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008863/0.4643, allocations: 185.7 kB / 407.3 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004484/0.4688, allocations: 2.039 MB / 409.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.4689, allocations: 12 kB / 409.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.4689, allocations: 4 kB / 409.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/0.4689, allocations: 15.91 kB / 409.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01095/0.4799, allocations: 4.752 MB / 414.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.4799, allocations: 4 kB / 414.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.481, allocations: 259.6 kB / 414.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006021/0.4817, allocations: 203.3 kB / 414.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.4818, allocations: 35.86 kB / 414.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.485, allocations: 3.203 MB / 417.8 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.485, allocations: 12 kB / 417.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005207/0.4902, allocations: 3.125 MB / 420.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/0.4915, allocations: 422.7 kB / 421.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006056/0.4921, allocations: 27.94 kB / 421.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.4935, allocations: 99.92 kB / 421.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.4937, allocations: 76.89 kB / 421.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.652e-05/0.4938, allocations: 32 kB / 421.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003298/0.4971, allocations: 1.22 MB / 422.8 MB, free: 224 kB / 350.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.4971, allocations: 0 / 422.8 MB, free: 224 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.00306/0.5002, allocations: 484 kB / 423.3 MB, free: 15.74 MB / 366.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.0006765/0.5009, allocations: 202.7 kB / 423.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006256/0.5072, allocations: 2.987 MB / 426.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/0.5072, allocations: 8.062 kB / 426.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/0.5094, allocations: 1.331 MB / 427.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/0.5132, allocations: 497.6 kB / 428.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.5263, allocations: 4.917 MB / 433.2 MB, free: 5.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003362/0.5297, allocations: 2.01 MB / 435.2 MB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002177/0.5319, allocations: 0.4921 MB / 435.7 MB, free: 3.062 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004386/0.5324, allocations: 143.4 kB / 435.8 MB, free: 2.922 MB / 366.1 MB Notification: Performance of SimCode: time 1.964e-06/0.5324, allocations: 0 / 435.8 MB, free: 2.922 MB / 366.1 MB Notification: Performance of Templates: time 0.297/0.8294, allocations: 25.67 MB / 461.5 MB, free: 103.6 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)