Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009889/0.0009889, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007243/0.007243, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.916/1.916, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4258/0.4258, allocations: 39.99 MB / 310.7 MB, free: 9.539 MB / 254.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: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005894/0.0005894, allocations: 12 kB / 379.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1447, allocations: 57.96 MB / 437.4 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01256/0.1573, allocations: 10.94 MB / 448.3 MB, free: 6.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009318/0.1667, allocations: 3.868 MB / 452.2 MB, free: 3.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002853/0.1696, allocations: 59.69 kB / 452.3 MB, free: 2.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003046/0.1727, allocations: 0.7535 MB / 453 MB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004423/0.1771, allocations: 0.8549 MB / 453.9 MB, free: 1.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.1786, allocations: 467.5 kB / 454.3 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3467/0.5253, allocations: 3.636 MB / 458 MB, free: 35.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004032/0.5294, allocations: 2.499 MB / 460.5 MB, free: 35.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003712/0.5331, allocations: 1.138 MB / 461.6 MB, free: 35.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003644/0.5368, allocations: 1.658 MB / 463.3 MB, free: 34.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006676/0.5375, allocations: 172 kB / 463.4 MB, free: 34.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.5389, allocations: 302 kB / 463.7 MB, free: 34.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001319/0.5403, allocations: 0.9173 MB / 464.6 MB, free: 34.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002892/0.5432, allocations: 1.567 MB / 466.2 MB, free: 34.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005666/0.5489, allocations: 5.183 MB / 471.4 MB, free: 33.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.5489, allocations: 0 / 471.4 MB, free: 33.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.5489, allocations: 0 / 471.4 MB, free: 33.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001974/0.5491, allocations: 0 / 471.4 MB, free: 33.51 MB / 382.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.009033/0.5581, allocations: 3.208 MB / 474.6 MB, free: 32.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.775e-05/0.5582, allocations: 9.844 kB / 474.6 MB, free: 32.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001674/0.5599, allocations: 396.9 kB / 475 MB, free: 31.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004121/0.564, allocations: 1.941 MB / 476.9 MB, free: 31.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.5642, allocations: 225.7 kB / 477.2 MB, free: 31.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00047/0.5647, allocations: 286.5 kB / 477.4 MB, free: 31.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0072/0.5719, allocations: 3.736 MB / 481.2 MB, free: 30.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.718e-05/0.572, allocations: 7.297 kB / 481.2 MB, free: 30.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002735/0.5723, allocations: 119.7 kB / 481.3 MB, free: 30.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002296/0.5726, allocations: 140.9 kB / 481.4 MB, free: 30.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006726/0.5793, allocations: 3.174 MB / 484.6 MB, free: 28.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03195/0.6113, allocations: 11.61 MB / 496.2 MB, free: 23.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004901/0.6162, allocations: 2.191 MB / 498.4 MB, free: 21.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002796/0.619, allocations: 1.238 MB / 499.6 MB, free: 21.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005395/0.6196, allocations: 214.5 kB / 499.9 MB, free: 21.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.763e-05/0.6197, allocations: 49.59 kB / 499.9 MB, free: 21.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.729e-06/0.6198, allocations: 0 / 499.9 MB, free: 21.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.02678/0.6466, allocations: 8.269 MB / 0.4963 GB, free: 17.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.6467, allocations: 66.81 kB / 0.4963 GB, free: 17.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007278/0.654, allocations: 1.938 MB / 0.4982 GB, free: 16.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000521/0.6546, allocations: 51.23 kB / 0.4983 GB, free: 16.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001774/0.6564, allocations: 1.358 MB / 0.4996 GB, free: 15.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001115/0.6575, allocations: 0.5206 MB / 0.5001 GB, free: 14.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005618/0.6581, allocations: 150.3 kB / 0.5002 GB, free: 14.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.6582, allocations: 301.1 kB / 0.5005 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002697/0.6609, allocations: 0.8869 MB / 0.5014 GB, free: 14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002545/0.6635, allocations: 1.349 MB / 0.5027 GB, free: 12.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004337/0.6678, allocations: 2.392 MB / 0.5051 GB, free: 11.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.032e-05/0.6679, allocations: 6.375 kB / 0.5051 GB, free: 11.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006329/0.6742, allocations: 2.933 MB / 0.5079 GB, free: 9.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.6743, allocations: 9.469 kB / 0.5079 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.303e-05/0.6744, allocations: 27.58 kB / 0.508 GB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.6754, allocations: 388.1 kB / 0.5083 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001759/0.6772, allocations: 461 kB / 0.5088 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005171/0.6824, allocations: 6.207 MB / 0.5148 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002788/0.6852, allocations: 123.8 kB / 0.515 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003199/0.6855, allocations: 76.05 kB / 0.515 GB, free: 2.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (206): * Single equations (assignments): 202 * 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,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002477/0.688, allocations: 0.8993 MB / 0.5159 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/0.689, allocations: 209.5 kB / 0.5161 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00651/0.6955, allocations: 2.911 MB / 0.5189 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/0.6956, allocations: 16 kB / 0.519 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.73e-05/0.6956, allocations: 12 kB / 0.519 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.293e-05/0.6957, allocations: 7.969 kB / 0.519 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.7115, allocations: 6.169 MB / 0.525 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.106e-05/0.7116, allocations: 4 kB / 0.525 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.7127, allocations: 243.6 kB / 0.5252 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002384/0.7151, allocations: 0.8131 MB / 0.526 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002035/0.7154, allocations: 39.98 kB / 0.5261 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/0.7304, allocations: 9.85 MB / 0.5357 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/0.7305, allocations: 12 kB / 0.5357 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009473/0.74, allocations: 4.186 MB / 0.5398 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002221/0.7422, allocations: 0.4905 MB / 0.5403 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001025/0.7433, allocations: 36 kB / 0.5403 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001895/0.7452, allocations: 103.8 kB / 0.5404 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003839/0.7456, allocations: 125.1 kB / 0.5405 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.7458, allocations: 51.92 kB / 0.5406 GB, free: 7.871 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003281/0.7491, allocations: 1.34 MB / 0.5419 GB, free: 6.508 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7491, allocations: 0 / 0.5419 GB, free: 6.508 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003739/0.7528, allocations: 0.5703 MB / 0.5424 GB, free: 5.938 MB / 414.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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006368/0.7535, allocations: 195.1 kB / 0.5426 GB, free: 5.738 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005543/0.759, allocations: 2.634 MB / 0.5452 GB, free: 3.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.998e-06/0.7591, allocations: 2 kB / 0.5452 GB, free: 3.051 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003941/0.763, allocations: 1.646 MB / 0.5468 GB, free: 1.367 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006056/0.7691, allocations: 0.5082 MB / 0.5473 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0161/0.7852, allocations: 7.178 MB / 0.5543 GB, free: 9.598 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003771/0.7891, allocations: 2.217 MB / 0.5565 GB, free: 7.352 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00236/0.7914, allocations: 465.7 kB / 0.5569 GB, free: 6.895 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008401/0.7923, allocations: 159.4 kB / 0.5571 GB, free: 6.742 MB / 430.1 MB Notification: Performance of SimCode: time 1.943e-06/0.7923, allocations: 0 / 0.5571 GB, free: 6.742 MB / 430.1 MB Notification: Performance of Templates: time 0.07083/0.8632, allocations: 31.03 MB / 0.5874 GB, free: 7.789 MB / 462.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) Environment - environmentSimulation: