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.001121/0.00112, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001473/0.001473, allocations: 172.7 kB / 15.95 MB, free: 208 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.937/1.937, allocations: 205.4 MB / 222.1 MB, free: 5.488 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.4558/0.4558, allocations: 40 MB / 310.4 MB, free: 10.02 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.0005592/0.0005595, allocations: 12 kB / 378.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1648, allocations: 57.97 MB / 436.8 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01693/0.1818, allocations: 10.26 MB / 447.1 MB, free: 8.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.1937, allocations: 3.729 MB / 450.8 MB, free: 4.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003798/0.1976, allocations: 59.69 kB / 450.8 MB, free: 4.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002742/0.2003, allocations: 0.6872 MB / 451.5 MB, free: 3.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003402/0.2038, allocations: 0.7924 MB / 452.3 MB, free: 2.953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.2049, allocations: 335.5 kB / 452.7 MB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3163/0.5212, allocations: 3.314 MB / 456 MB, free: 35.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003283/0.5246, allocations: 2.069 MB / 458 MB, free: 34.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002412/0.527, allocations: 1.135 MB / 459.2 MB, free: 34.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002487/0.5295, allocations: 1.587 MB / 460.8 MB, free: 34.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004394/0.53, allocations: 176.7 kB / 460.9 MB, free: 34.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008857/0.5309, allocations: 249 kB / 461.2 MB, free: 34.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009037/0.5318, allocations: 0.9063 MB / 462.1 MB, free: 34.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.5329, allocations: 0.6322 MB / 462.7 MB, free: 34.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004437/0.5373, allocations: 4.467 MB / 467.2 MB, free: 34.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.5373, allocations: 4 kB / 467.2 MB, free: 34.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.5374, allocations: 0 / 467.2 MB, free: 34.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001798/0.5375, allocations: 0 / 467.2 MB, free: 34.66 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.01025/0.5478, allocations: 3.246 MB / 470.4 MB, free: 33.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.838e-05/0.5479, allocations: 9.812 kB / 470.4 MB, free: 33.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002669/0.5506, allocations: 394.1 kB / 470.8 MB, free: 33.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005111/0.5557, allocations: 1.871 MB / 472.7 MB, free: 32.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.556, allocations: 232.7 kB / 472.9 MB, free: 32.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.5571, allocations: 281.5 kB / 473.2 MB, free: 32.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008335/0.5654, allocations: 3.708 MB / 476.9 MB, free: 32.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-05/0.5656, allocations: 9.281 kB / 476.9 MB, free: 32.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000273/0.5659, allocations: 117 kB / 477 MB, free: 32.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001922/0.5661, allocations: 141.8 kB / 477.2 MB, free: 32.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00655/0.5726, allocations: 3.157 MB / 480.3 MB, free: 32.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03168/0.6044, allocations: 11.6 MB / 491.9 MB, free: 27.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005284/0.6097, allocations: 2.182 MB / 494.1 MB, free: 26.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003079/0.6128, allocations: 1.24 MB / 495.3 MB, free: 25.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004832/0.6134, allocations: 210.8 kB / 495.5 MB, free: 25.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.852e-05/0.6135, allocations: 46 kB / 495.6 MB, free: 25.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.398e-06/0.6135, allocations: 0 / 495.6 MB, free: 25.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.0246/0.6381, allocations: 8.211 MB / 0.492 GB, free: 22.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/0.6382, allocations: 71.12 kB / 0.4921 GB, free: 22.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00687/0.6451, allocations: 1.931 MB / 0.4939 GB, free: 21.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004334/0.6456, allocations: 51.83 kB / 0.494 GB, free: 21.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.647, allocations: 1.361 MB / 0.4953 GB, free: 19.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008546/0.6479, allocations: 0.5189 MB / 0.4958 GB, free: 19.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002792/0.6482, allocations: 35.34 kB / 0.4959 GB, free: 19.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.6484, allocations: 380.8 kB / 0.4962 GB, free: 19.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.6505, allocations: 0.8732 MB / 0.4971 GB, free: 18.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/0.6527, allocations: 1.341 MB / 0.4984 GB, free: 17.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.6549, allocations: 1.089 MB / 0.4995 GB, free: 16.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.32e-05/0.6549, allocations: 4.969 kB / 0.4995 GB, free: 16.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006079/0.661, allocations: 2.915 MB / 0.5023 GB, free: 15.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.6611, allocations: 11 kB / 0.5023 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.701e-05/0.6612, allocations: 15.12 kB / 0.5023 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000998/0.6622, allocations: 406.8 kB / 0.5027 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0017/0.6639, allocations: 443 kB / 0.5031 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005497/0.6694, allocations: 6.204 MB / 0.5092 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002907/0.6723, allocations: 126.4 kB / 0.5093 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003741/0.6727, allocations: 75.02 kB / 0.5094 GB, free: 9.645 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002994/0.6757, allocations: 0.907 MB / 0.5103 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009187/0.6767, allocations: 207.1 kB / 0.5105 GB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005853/0.6825, allocations: 2.909 MB / 0.5133 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.6826, allocations: 12 kB / 0.5133 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/0.6826, allocations: 8 kB / 0.5133 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.069e-05/0.6826, allocations: 7.969 kB / 0.5133 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.697, allocations: 6.163 MB / 0.5194 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.939e-05/0.6971, allocations: 4.531 kB / 0.5194 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.6983, allocations: 247.6 kB / 0.5196 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002797/0.7011, allocations: 0.8007 MB / 0.5204 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002872/0.7014, allocations: 41.94 kB / 0.5204 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01458/0.716, allocations: 9.831 MB / 0.53 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.7161, allocations: 4 kB / 0.53 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009323/0.7254, allocations: 4.18 MB / 0.5341 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002114/0.7276, allocations: 494.4 kB / 0.5346 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/0.7287, allocations: 43.94 kB / 0.5346 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001966/0.7307, allocations: 99.89 kB / 0.5347 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004135/0.7311, allocations: 117.1 kB / 0.5348 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001854/0.7313, allocations: 55.92 kB / 0.5349 GB, free: 15.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003727/0.7351, allocations: 1.317 MB / 0.5362 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7351, allocations: 0 / 0.5362 GB, free: 14.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00379/0.7389, allocations: 0.5781 MB / 0.5367 GB, free: 14.05 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 (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,(5,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005262/0.7394, allocations: 159 kB / 0.5369 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004999/0.7444, allocations: 2.637 MB / 0.5395 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/0.7445, allocations: 0 / 0.5395 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.7473, allocations: 1.639 MB / 0.5411 GB, free: 9.516 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00403/0.7513, allocations: 0.5123 MB / 0.5416 GB, free: 9.004 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.7656, allocations: 6.857 MB / 0.5483 GB, free: 2.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003842/0.7695, allocations: 2.218 MB / 0.5504 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002221/0.7717, allocations: 467.4 kB / 0.5509 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.7728, allocations: 155.4 kB / 0.551 GB, free: 15.22 MB / 430.1 MB Notification: Performance of SimCode: time 3.116e-06/0.7728, allocations: 0 / 0.551 GB, free: 15.22 MB / 430.1 MB Notification: Performance of Templates: time 0.06472/0.8376, allocations: 30.24 MB / 0.5805 GB, free: 1.051 MB / 446.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: