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.001112/0.001113, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0009789/0.000979, allocations: 168.7 kB / 15.95 MB, free: 204 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.694/1.694, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004603/0.0004604, allocations: 8 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3195, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01343/0.333, allocations: 9.604 MB / 336.1 MB, free: 9.863 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.3448, allocations: 3.454 MB / 339.5 MB, free: 6.398 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003103/0.348, allocations: 51.75 kB / 339.6 MB, free: 6.348 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003396/0.3514, allocations: 0.6484 MB / 340.2 MB, free: 5.695 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005016/0.3564, allocations: 0.738 MB / 341 MB, free: 4.953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001657/0.3581, allocations: 291.6 kB / 341.3 MB, free: 4.668 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005508/0.3636, allocations: 2.97 MB / 344.2 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004867/0.3686, allocations: 1.808 MB / 346 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002551/0.3711, allocations: 1.019 MB / 347.1 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003425/0.3746, allocations: 1.416 MB / 348.5 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001017/0.3757, allocations: 156 kB / 348.6 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001796/0.3775, allocations: 223.9 kB / 348.9 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001901/0.3794, allocations: 0.81 MB / 349.7 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001734/0.3812, allocations: 0.5665 MB / 350.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006047/0.3872, allocations: 3.927 MB / 354.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.3873, allocations: 0 / 354.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.3873, allocations: 0 / 354.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002605/0.3876, allocations: 0 / 354.2 MB, free: 7.703 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.008374/0.396, allocations: 2.872 MB / 357 MB, free: 4.766 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/0.396, allocations: 8.031 kB / 357 MB, free: 4.758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001746/0.3978, allocations: 340.1 kB / 357.4 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004389/0.4022, allocations: 1.639 MB / 359 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002788/0.4025, allocations: 197 kB / 359.2 MB, free: 2.531 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009808/0.4035, allocations: 255.9 kB / 359.4 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008429/0.412, allocations: 3.264 MB / 362.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.749e-05/0.4121, allocations: 7.906 kB / 362.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002654/0.4124, allocations: 100 kB / 362.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001725/0.4125, allocations: 124.9 kB / 362.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005561/0.4181, allocations: 2.74 MB / 365.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02127/0.4394, allocations: 10.55 MB / 376.2 MB, free: 1.035 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.4417, allocations: 1.339 MB / 377.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.4431, allocations: 0.7852 MB / 378.4 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000358/0.4435, allocations: 208.3 kB / 378.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.4436, allocations: 55.42 kB / 378.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.896e-06/0.4436, allocations: 0 / 378.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01728/0.4609, allocations: 7.05 MB / 385.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.461, allocations: 64.41 kB / 385.7 MB, free: 7.301 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003294/0.4643, allocations: 1.785 MB / 387.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/0.4645, allocations: 45.7 kB / 387.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009595/0.4655, allocations: 1.275 MB / 388.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004458/0.4659, allocations: 417.9 kB / 389.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.466, allocations: 36 kB / 389.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.4662, allocations: 369.9 kB / 389.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.4676, allocations: 0.7768 MB / 390.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.4693, allocations: 1.285 MB / 391.7 MB, free: 1.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.4708, allocations: 0.9861 MB / 392.7 MB, free: 76 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/0.4709, allocations: 4 kB / 392.7 MB, free: 72 kB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004661/0.4755, allocations: 2.463 MB / 395.2 MB, free: 13.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/0.4756, allocations: 15.94 kB / 395.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.532e-05/0.4757, allocations: 23.89 kB / 395.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006627/0.4763, allocations: 243.2 kB / 395.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.4779, allocations: 423.4 kB / 395.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.4807, allocations: 2.994 MB / 398.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.4824, allocations: 127.8 kB / 399 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002616/0.4827, allocations: 75.98 kB / 399 MB, free: 9.414 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.001784/0.4845, allocations: 0.8172 MB / 399.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005468/0.485, allocations: 189.6 kB / 400 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00383/0.4889, allocations: 2.039 MB / 402.1 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.4889, allocations: 12 kB / 402.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.4889, allocations: 0 / 402.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.489, allocations: 3.984 kB / 402.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009446/0.4984, allocations: 4.752 MB / 406.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.4985, allocations: 3.953 kB / 406.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.4996, allocations: 263.6 kB / 407.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005487/0.5002, allocations: 199.3 kB / 407.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.5003, allocations: 28.16 kB / 407.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0027/0.503, allocations: 2.971 MB / 410.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.503, allocations: 4 kB / 410.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005486/0.5085, allocations: 3.122 MB / 413.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.5099, allocations: 434.5 kB / 413.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006101/0.5105, allocations: 28.06 kB / 413.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.5119, allocations: 99.81 kB / 414 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.5121, allocations: 80.83 kB / 414 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.695e-05/0.5122, allocations: 35.98 kB / 414.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002624/0.5148, allocations: 1.212 MB / 415.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5148, allocations: 0 / 415.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002584/0.5174, allocations: 488 kB / 415.8 MB, free: 8.188 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.0004902/0.5179, allocations: 162.9 kB / 415.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004611/0.5225, allocations: 2.331 MB / 418.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/0.5226, allocations: 4.25 kB / 418.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00222/0.5248, allocations: 1.331 MB / 419.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/0.5282, allocations: 473.8 kB / 420.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.5408, allocations: 5.804 MB / 425.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002923/0.5438, allocations: 2.006 MB / 427.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002012/0.5459, allocations: 0.4921 MB / 428.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005186/0.5464, allocations: 135.4 kB / 428.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5464, allocations: 0 / 428.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of Templates: time 0.04803/0.5945, allocations: 23.79 MB / 452.3 MB, free: 3.383 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)