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.006159/0.006159, allocations: 100.3 kB / 15.73 MB, free: 6.469 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.001398/0.001398, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.765/1.765, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.3957/0.3957, allocations: 39.94 MB / 309.8 MB, free: 9.328 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.001832/0.001832, allocations: 67.91 kB / 435.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4298, allocations: 56.87 MB / 492.6 MB, free: 19.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01541/0.4452, allocations: 11.64 MB / 0.4925 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.4561, allocations: 3.949 MB / 0.4963 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004232/0.4604, allocations: 63.69 kB / 0.4964 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004411/0.4649, allocations: 0.8638 MB / 0.4972 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007252/0.4722, allocations: 0.9512 MB / 0.4982 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002798/0.475, allocations: 0.5164 MB / 0.4987 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006731/0.4817, allocations: 3.34 MB / 0.5019 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00409/0.4859, allocations: 2.984 MB / 0.5048 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003129/0.489, allocations: 1.553 MB / 0.5064 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003846/0.4929, allocations: 2.002 MB / 0.5083 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001336/0.4942, allocations: 430.5 kB / 0.5087 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001966/0.4962, allocations: 0.5347 MB / 0.5092 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.4975, allocations: 1.225 MB / 0.5104 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002455/0.5, allocations: 1.899 MB / 0.5123 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008684/0.5087, allocations: 5.571 MB / 0.5177 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.5087, allocations: 1.062 kB / 0.5177 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.5087, allocations: 0 / 0.5177 GB, free: 10.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002423/0.509, allocations: 0 / 0.5177 GB, free: 10.32 MB / 398.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.01185/0.5209, allocations: 3.831 MB / 0.5215 GB, free: 6.816 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.5209, allocations: 11.89 kB / 0.5215 GB, free: 6.805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.5221, allocations: 396.5 kB / 0.5219 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004112/0.5262, allocations: 1.954 MB / 0.5238 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.5264, allocations: 214 kB / 0.524 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00043/0.5269, allocations: 287.8 kB / 0.5243 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007076/0.534, allocations: 3.731 MB / 0.5279 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.76e-05/0.5341, allocations: 11.83 kB / 0.5279 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000279/0.5344, allocations: 116 kB / 0.528 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000167/0.5345, allocations: 141.5 kB / 0.5282 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006095/0.5406, allocations: 3.168 MB / 0.5313 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02236/0.563, allocations: 11.43 MB / 0.5424 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003839/0.5669, allocations: 2.185 MB / 0.5446 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002081/0.569, allocations: 1.222 MB / 0.5457 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003911/0.5694, allocations: 207.5 kB / 0.5459 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/0.5695, allocations: 51.88 kB / 0.546 GB, free: 13.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=139): time 3.507e-06/0.5695, allocations: 0 / 0.546 GB, free: 13.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=154): time 0.01892/0.5885, allocations: 8.211 MB / 0.554 GB, free: 4.793 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/0.5885, allocations: 68.72 kB / 0.5541 GB, free: 4.715 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003174/0.5917, allocations: 1.941 MB / 0.556 GB, free: 2.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001874/0.5919, allocations: 49.7 kB / 0.556 GB, free: 2.676 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.593, allocations: 1.351 MB / 0.5573 GB, free: 1.309 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005052/0.5935, allocations: 0.5276 MB / 0.5579 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005464/0.5941, allocations: 319.3 kB / 0.5582 GB, free: 464 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.5942, allocations: 305.1 kB / 0.5584 GB, free: 156 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.5956, allocations: 0.8784 MB / 0.5593 GB, free: 15.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.5973, allocations: 1.349 MB / 0.5606 GB, free: 13.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003211/0.6005, allocations: 2.378 MB / 0.5629 GB, free: 11.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.6005, allocations: 4 kB / 0.563 GB, free: 11.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00562/0.6061, allocations: 2.932 MB / 0.5658 GB, free: 8.184 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.6062, allocations: 12 kB / 0.5658 GB, free: 8.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.405e-05/0.6062, allocations: 15.98 kB / 0.5658 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009603/0.6072, allocations: 403.4 kB / 0.5662 GB, free: 7.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.6089, allocations: 439.3 kB / 0.5666 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007232/0.6161, allocations: 6.761 MB / 0.5732 GB, free: 144 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002678/0.6188, allocations: 119.8 kB / 0.5734 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002497/0.6191, allocations: 76.06 kB / 0.5734 GB, free: 15.95 MB / 462.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.002049/0.6211, allocations: 0.9071 MB / 0.5743 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006867/0.6218, allocations: 213.3 kB / 0.5745 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005477/0.6273, allocations: 2.903 MB / 0.5774 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.901e-05/0.6274, allocations: 16 kB / 0.5774 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.6274, allocations: 8 kB / 0.5774 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-05/0.6274, allocations: 7.969 kB / 0.5774 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.6398, allocations: 6.139 MB / 0.5834 GB, free: 5.582 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.6398, allocations: 4 kB / 0.5834 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.6408, allocations: 244.2 kB / 0.5836 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002146/0.643, allocations: 0.8145 MB / 0.5844 GB, free: 4.516 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.6431, allocations: 39.98 kB / 0.5845 GB, free: 4.477 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01423/0.6574, allocations: 10.73 MB / 0.5949 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.6574, allocations: 11.98 kB / 0.5949 GB, free: 9.309 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009828/0.6673, allocations: 4.184 MB / 0.599 GB, free: 5.039 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002059/0.6694, allocations: 486.4 kB / 0.5995 GB, free: 4.543 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000451/0.6698, allocations: 36.11 kB / 0.5995 GB, free: 4.508 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/0.6714, allocations: 99.81 kB / 0.5996 GB, free: 4.41 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004457/0.6719, allocations: 129 kB / 0.5998 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/0.672, allocations: 47.98 kB / 0.5998 GB, free: 4.238 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002952/0.675, allocations: 1.329 MB / 0.6011 GB, free: 2.887 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.675, allocations: 0 / 0.6011 GB, free: 2.887 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003865/0.6789, allocations: 0.5742 MB / 0.6017 GB, free: 2.312 MB / 478.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.0006878/0.6796, allocations: 200.2 kB / 0.6018 GB, free: 2.109 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005829/0.6854, allocations: 2.639 MB / 0.6044 GB, free: 15.41 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.6855, allocations: 4 kB / 0.6044 GB, free: 15.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002922/0.6884, allocations: 1.639 MB / 0.606 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/0.6921, allocations: 0.5393 MB / 0.6066 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.7036, allocations: 5.748 MB / 0.6122 GB, free: 7.363 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002114/0.7057, allocations: 2.221 MB / 0.6143 GB, free: 5.113 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001848/0.7076, allocations: 469.7 kB / 0.6148 GB, free: 4.652 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004897/0.7081, allocations: 155.4 kB / 0.6149 GB, free: 4.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7081, allocations: 0 / 0.6149 GB, free: 4.5 MB / 494.1 MB Notification: Performance of Templates: time 0.3554/1.064, allocations: 33.94 MB / 0.6481 GB, free: 121 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (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)