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.001025/0.001025, allocations: 100.1 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.00119/0.00119, allocations: 177.3 kB / 15.95 MB, free: 216 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.624/1.624, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0005387/0.000539, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3275, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01075/0.3383, allocations: 8.841 MB / 335.3 MB, free: 10.62 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008041/0.3464, allocations: 3.559 MB / 338.9 MB, free: 7.094 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002083/0.3485, allocations: 47.75 kB / 338.9 MB, free: 7.047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001992/0.3505, allocations: 0.6841 MB / 339.6 MB, free: 6.359 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003114/0.3536, allocations: 0.7905 MB / 340.4 MB, free: 5.566 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.3547, allocations: 287.7 kB / 340.7 MB, free: 5.285 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003216/0.3579, allocations: 1.939 MB / 342.6 MB, free: 3.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002278/0.3602, allocations: 1.808 MB / 344.4 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00156/0.3618, allocations: 0.934 MB / 345.3 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001802/0.3636, allocations: 1.249 MB / 346.6 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002931/0.3639, allocations: 148 kB / 346.7 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006315/0.3645, allocations: 227.9 kB / 346.9 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008141/0.3653, allocations: 0.7712 MB / 347.7 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005915/0.3659, allocations: 0.5665 MB / 348.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003652/0.3696, allocations: 3.872 MB / 352.2 MB, free: 9.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3696, allocations: 0 / 352.2 MB, free: 9.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3696, allocations: 0 / 352.2 MB, free: 9.711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.695e-05/0.3697, allocations: 0 / 352.2 MB, free: 9.711 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.006058/0.3758, allocations: 2.857 MB / 355 MB, free: 6.789 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.226e-05/0.3758, allocations: 8.031 kB / 355 MB, free: 6.781 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009915/0.3768, allocations: 348.1 kB / 355.4 MB, free: 6.438 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003124/0.38, allocations: 1.659 MB / 357 MB, free: 4.723 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.3802, allocations: 189 kB / 357.2 MB, free: 4.535 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003358/0.3805, allocations: 255.9 kB / 357.5 MB, free: 4.285 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005233/0.3857, allocations: 3.236 MB / 360.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-05/0.3858, allocations: 11.84 kB / 360.7 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/0.386, allocations: 100 kB / 360.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.3862, allocations: 132.9 kB / 360.9 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004499/0.3907, allocations: 2.729 MB / 363.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01736/0.4081, allocations: 10.5 MB / 374.2 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.4099, allocations: 1.342 MB / 375.5 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003063/0.4102, allocations: 204.3 kB / 375.7 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.4103, allocations: 47.56 kB / 375.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=97): time 4.809e-06/0.4103, allocations: 0 / 375.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=122): time 0.01508/0.4254, allocations: 7.088 MB / 382.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.4255, allocations: 64.41 kB / 382.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002582/0.4281, allocations: 1.719 MB / 384.6 MB, free: 8.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.4282, allocations: 49.7 kB / 384.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009379/0.4291, allocations: 1.267 MB / 385.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003707/0.4295, allocations: 429.9 kB / 386.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.648e-05/0.4296, allocations: 32 kB / 386.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.4298, allocations: 369.9 kB / 386.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.431, allocations: 0.7769 MB / 387.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.4325, allocations: 1.285 MB / 388.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.4339, allocations: 0.9862 MB / 389.8 MB, free: 2.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.4339, allocations: 7.938 kB / 389.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004223/0.4382, allocations: 2.478 MB / 392.3 MB, free: 484 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.4382, allocations: 12 kB / 392.3 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/0.4383, allocations: 20.03 kB / 392.3 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006446/0.4389, allocations: 243.2 kB / 392.6 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.4403, allocations: 419.3 kB / 393 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.4429, allocations: 3.029 MB / 396 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.4448, allocations: 135.8 kB / 396.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.4449, allocations: 75.92 kB / 396.2 MB, free: 12.27 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001952/0.4468, allocations: 0.8134 MB / 397 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004817/0.4473, allocations: 185.7 kB / 397.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003458/0.4508, allocations: 2.043 MB / 399.2 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.4508, allocations: 16 kB / 399.2 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.4508, allocations: 7.953 kB / 399.3 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.4509, allocations: 7.969 kB / 399.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008481/0.4594, allocations: 4.708 MB / 404 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.4594, allocations: 8.031 kB / 404 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.4605, allocations: 267.6 kB / 404.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005413/0.4611, allocations: 199.3 kB / 404.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.64e-05/0.4612, allocations: 27.95 kB / 404.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002884/0.4641, allocations: 3.013 MB / 407.5 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4641, allocations: 4.031 kB / 407.5 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004962/0.4691, allocations: 3.277 MB / 410.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.4702, allocations: 426.6 kB / 411.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.4705, allocations: 20 kB / 411.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008763/0.4713, allocations: 103.9 kB / 411.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.4715, allocations: 85.06 kB / 411.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.203e-05/0.4716, allocations: 32 kB / 411.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001906/0.4736, allocations: 1.165 MB / 412.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4736, allocations: 0 / 412.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001662/0.4752, allocations: 488 kB / 413.1 MB, free: 10.87 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003295/0.4756, allocations: 166.9 kB / 413.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003582/0.4792, allocations: 2.338 MB / 415.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.4792, allocations: 0 / 415.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001747/0.4809, allocations: 1.351 MB / 416.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001925/0.4829, allocations: 453.7 kB / 417.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009056/0.4919, allocations: 5.785 MB / 423.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001661/0.4936, allocations: 2.053 MB / 425.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001637/0.4953, allocations: 0.496 MB / 425.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/0.4957, allocations: 139.4 kB / 425.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4957, allocations: 0 / 425.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of Templates: time 0.04478/0.5405, allocations: 23.15 MB / 449 MB, free: 6.668 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: