Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001088, allocations: 91.84 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.009066/0.009067, allocations: 169.9 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.555/1.555, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0005152/0.0005153, allocations: 15.12 kB / 279.5 MB, free: 12.49 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.391, allocations: 47.58 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01649/0.4076, allocations: 10.92 MB / 338 MB, free: 8.402 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01429/0.422, allocations: 3.861 MB / 341.8 MB, free: 4.527 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004439/0.4265, allocations: 59.69 kB / 341.9 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004668/0.4313, allocations: 0.7573 MB / 342.6 MB, free: 3.707 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007965/0.4393, allocations: 0.851 MB / 343.5 MB, free: 2.852 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.4423, allocations: 471.5 kB / 344 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007566/0.4499, allocations: 3.601 MB / 347.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004189/0.4541, allocations: 2.51 MB / 350.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002614/0.4568, allocations: 1.124 MB / 351.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003145/0.4599, allocations: 1.63 MB / 352.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006802/0.4606, allocations: 172 kB / 353 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009904/0.4616, allocations: 295.7 kB / 353.3 MB, free: 8.988 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.4627, allocations: 0.911 MB / 354.2 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00218/0.4649, allocations: 1.552 MB / 355.7 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007163/0.472, allocations: 5.134 MB / 360.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.4721, allocations: 3.938 kB / 360.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.348e-06/0.4721, allocations: 0 / 360.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.000166/0.4723, allocations: 0 / 360.9 MB, free: 1.352 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.008892/0.4812, allocations: 3.186 MB / 364.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.305e-05/0.4813, allocations: 12.03 kB / 364.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001575/0.4829, allocations: 392.6 kB / 364.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004118/0.487, allocations: 1.931 MB / 366.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.4873, allocations: 226 kB / 366.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005373/0.4878, allocations: 287.9 kB / 366.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007789/0.4956, allocations: 3.701 MB / 370.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.571e-05/0.4957, allocations: 11.98 kB / 370.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002768/0.496, allocations: 112 kB / 370.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.4962, allocations: 141.5 kB / 370.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006038/0.5023, allocations: 3.106 MB / 374 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0211/0.5234, allocations: 11.7 MB / 385.6 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00259/0.526, allocations: 1.905 MB / 387.6 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/0.5279, allocations: 1.088 MB / 388.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003002/0.5282, allocations: 215.2 kB / 388.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.5282, allocations: 43.56 kB / 388.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.276e-06/0.5282, allocations: 0 / 388.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01419/0.5424, allocations: 6.566 MB / 395.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.5425, allocations: 68.72 kB / 395.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003818/0.5464, allocations: 1.986 MB / 397.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.5466, allocations: 49.7 kB / 397.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.5478, allocations: 1.405 MB / 399 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004971/0.5483, allocations: 496.9 kB / 399.5 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.5485, allocations: 145.6 kB / 399.6 MB, free: 9.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.5486, allocations: 309.1 kB / 399.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.55, allocations: 0.8198 MB / 400.7 MB, free: 8.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/0.552, allocations: 1.383 MB / 402.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003575/0.5556, allocations: 2.364 MB / 404.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.5556, allocations: 4 kB / 404.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005963/0.5616, allocations: 2.858 MB / 407.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.5616, allocations: 16.09 kB / 407.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.714e-05/0.5617, allocations: 23.94 kB / 407.4 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.5628, allocations: 391.1 kB / 407.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.5643, allocations: 439.2 kB / 408.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007208/0.5716, allocations: 6.139 MB / 414.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002191/0.5738, allocations: 127.8 kB / 414.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000202/0.574, allocations: 83.98 kB / 414.5 MB, free: 9.809 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002704/0.5767, allocations: 0.9079 MB / 415.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008417/0.5776, allocations: 205.5 kB / 415.6 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005182/0.5827, allocations: 2.437 MB / 418.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.5828, allocations: 16 kB / 418.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.5828, allocations: 8 kB / 418.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.5829, allocations: 7.984 kB / 418.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.5941, allocations: 5.539 MB / 423.6 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.5941, allocations: 4 kB / 423.6 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.5953, allocations: 260.2 kB / 423.9 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.5964, allocations: 403.1 kB / 424.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.5966, allocations: 35.98 kB / 424.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007927/0.6045, allocations: 7.579 MB / 431.9 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.6045, allocations: 7.938 kB / 431.9 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007001/0.6115, allocations: 3.625 MB / 435.5 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/0.6129, allocations: 474.3 kB / 436 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008137/0.6137, allocations: 35.94 kB / 436 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.6153, allocations: 91.88 kB / 436.1 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.6155, allocations: 109.1 kB / 436.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.6156, allocations: 43.98 kB / 436.3 MB, free: 3.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003305/0.619, allocations: 1.357 MB / 437.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.619, allocations: 0 / 437.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00363/0.6226, allocations: 0.5352 MB / 438.2 MB, free: 1.262 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.0007236/0.6233, allocations: 203 kB / 438.4 MB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005159/0.6285, allocations: 2.492 MB / 440.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/0.6286, allocations: 4 kB / 440.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002964/0.6315, allocations: 1.499 MB / 442.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005012/0.6366, allocations: 0.503 MB / 442.9 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/0.6527, allocations: 7.092 MB / 450 MB, free: 5.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003115/0.6559, allocations: 2.201 MB / 452.2 MB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002128/0.658, allocations: 0.494 MB / 452.6 MB, free: 2.539 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004909/0.6585, allocations: 151.4 kB / 452.8 MB, free: 2.391 MB / 382.1 MB Notification: Performance of SimCode: time 7.023e-06/0.6585, allocations: 4 kB / 452.8 MB, free: 2.387 MB / 382.1 MB Notification: Performance of Templates: time 0.291/0.9495, allocations: 28.03 MB / 480.8 MB, free: 93.56 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)