Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002764/0.002768, allocations: 361.6 kB / 15.95 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.101/4.101, allocations: 388.9 MB / 405.6 MB, free: 47.9 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003514/0.003514, allocations: 220.8 kB / 451 MB, free: 2.375 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.8604/0.8604, allocations: 80.01 MB / 0.5627 GB, free: 5.988 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004794/0.0004797, allocations: 11.98 kB / 0.6265 GB, free: 4.559 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1443, allocations: 54.88 MB / 0.6801 GB, free: 13.54 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5479/0.6923, allocations: 117.6 MB / 0.7949 GB, free: 2.648 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.6926, allocations: 88.75 kB / 0.795 GB, free: 2.566 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3163/1.009, allocations: 61.62 MB / 0.8552 GB, free: 5.254 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.009, allocations: 0 / 0.8552 GB, free: 5.254 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004705/1.009, allocations: 79.88 kB / 0.8552 GB, free: 5.176 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01587/1.025, allocations: 3.264 MB / 0.8584 GB, free: 1.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/1.025, allocations: 12.03 kB / 0.8584 GB, free: 1.828 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002665/1.028, allocations: 407.9 kB / 0.8588 GB, free: 1.426 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01065/1.039, allocations: 2.164 MB / 0.8609 GB, free: 15.21 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004361/1.039, allocations: 213.6 kB / 0.8611 GB, free: 15 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/1.041, allocations: 283.9 kB / 0.8614 GB, free: 14.72 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/1.055, allocations: 3.698 MB / 0.865 GB, free: 10.88 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/1.055, allocations: 15.89 kB / 0.865 GB, free: 10.86 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006947/1.056, allocations: 116 kB / 0.8651 GB, free: 10.75 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002376/1.056, allocations: 133.5 kB / 0.8653 GB, free: 10.61 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/1.068, allocations: 2.989 MB / 0.8682 GB, free: 7.613 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3764/1.444, allocations: 11.58 MB / 0.8795 GB, free: 97.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006639/1.451, allocations: 2.226 MB / 0.8817 GB, free: 96.75 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002729/1.454, allocations: 1.085 MB / 0.8827 GB, free: 96.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006887/1.454, allocations: 226.3 kB / 0.8829 GB, free: 96.54 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/1.454, allocations: 45.56 kB / 0.883 GB, free: 96.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=141): time 4.719e-06/1.454, allocations: 4.406 kB / 0.883 GB, free: 96.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=155): time 0.0326/1.487, allocations: 8.303 MB / 0.8911 GB, free: 95.56 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/1.487, allocations: 72.8 kB / 0.8912 GB, free: 95.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004682/1.492, allocations: 1.912 MB / 0.893 GB, free: 95.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004619/1.492, allocations: 52.77 kB / 0.8931 GB, free: 95.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/1.494, allocations: 1.354 MB / 0.8944 GB, free: 94.81 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009188/1.495, allocations: 0.5286 MB / 0.8949 GB, free: 94.54 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/1.495, allocations: 33.31 kB / 0.895 GB, free: 94.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/1.495, allocations: 383.9 kB / 0.8953 GB, free: 94.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002364/1.497, allocations: 0.8891 MB / 0.8962 GB, free: 94.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002902/1.5, allocations: 1.336 MB / 0.8975 GB, free: 93.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003269/1.504, allocations: 1.113 MB / 0.8986 GB, free: 93.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-05/1.504, allocations: 5.281 kB / 0.8986 GB, free: 93.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.009821/1.513, allocations: 2.916 MB / 0.9014 GB, free: 93.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.953e-05/1.514, allocations: 10.88 kB / 0.9014 GB, free: 93.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-05/1.514, allocations: 12.69 kB / 0.9015 GB, free: 93.53 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/1.516, allocations: 451.5 kB / 0.9019 GB, free: 93.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003823/1.519, allocations: 455.9 kB / 0.9023 GB, free: 93.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/1.531, allocations: 7.058 MB / 0.9092 GB, free: 89.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/1.534, allocations: 126.9 kB / 0.9093 GB, free: 89.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006129/1.535, allocations: 74.61 kB / 0.9094 GB, free: 89.56 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (203): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003235/1.538, allocations: 0.9022 MB / 0.9103 GB, free: 89.45 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008902/1.539, allocations: 204.1 kB / 0.9105 GB, free: 89.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/1.55, allocations: 2.997 MB / 0.9134 GB, free: 88.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.543e-05/1.55, allocations: 18.16 kB / 0.9134 GB, free: 88.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.011e-05/1.55, allocations: 10.83 kB / 0.9134 GB, free: 88.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.475e-05/1.55, allocations: 7.984 kB / 0.9134 GB, free: 88.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02078/1.571, allocations: 6.143 MB / 0.9194 GB, free: 86.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-05/1.571, allocations: 6.344 kB / 0.9195 GB, free: 86.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002377/1.573, allocations: 228.8 kB / 0.9197 GB, free: 86.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004242/1.577, allocations: 0.8423 MB / 0.9205 GB, free: 86.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005163/1.578, allocations: 40.22 kB / 0.9205 GB, free: 86.15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03396/1.612, allocations: 10.2 MB / 0.9305 GB, free: 79.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.261e-05/1.612, allocations: 5.625 kB / 0.9305 GB, free: 79.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02083/1.633, allocations: 4.245 MB / 0.9346 GB, free: 77.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/1.635, allocations: 497.1 kB / 0.9351 GB, free: 77.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009157/1.636, allocations: 35.23 kB / 0.9352 GB, free: 77.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002956/1.639, allocations: 95.39 kB / 0.9352 GB, free: 77.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007749/1.64, allocations: 126.4 kB / 0.9354 GB, free: 77.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002268/1.64, allocations: 50.52 kB / 0.9354 GB, free: 77.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004134/1.644, allocations: 1.313 MB / 0.9367 GB, free: 76.93 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.082e-06/1.644, allocations: 0 / 0.9367 GB, free: 76.93 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004457/1.649, allocations: 0.6287 MB / 0.9373 GB, free: 76.87 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,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 (112): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001268/1.65, allocations: 435 kB / 0.9377 GB, free: 76.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007524/1.658, allocations: 2.643 MB / 0.9403 GB, free: 75.63 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.658, allocations: 0 / 0.9403 GB, free: 75.63 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004723/1.662, allocations: 1.675 MB / 0.9419 GB, free: 74.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005146/1.668, allocations: 0.497 MB / 0.9424 GB, free: 74.64 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/1.685, allocations: 6.874 MB / 0.9491 GB, free: 70.86 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00446/1.689, allocations: 2.263 MB / 0.9514 GB, free: 69.87 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003053/1.692, allocations: 467.9 kB / 0.9518 GB, free: 69.82 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/1.694, allocations: 150.4 kB / 0.9519 GB, free: 69.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.573e-06/1.694, allocations: 0 / 0.9519 GB, free: 69.8 MB / 474.7 MB Notification: Performance of Templates: time 0.1003/1.794, allocations: 34.34 MB / 0.9855 GB, free: 61.9 MB / 474.7 MB