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.001832/0.001832, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003158/0.003158, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.825/1.825, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.4439/0.4439, allocations: 39.94 MB / 309.7 MB, free: 9.293 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.002075/0.002075, allocations: 62.41 kB / 377.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1906, allocations: 56.89 MB / 434.5 MB, free: 3.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01655/0.2072, allocations: 11.62 MB / 446.1 MB, free: 7.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01142/0.2187, allocations: 3.965 MB / 450.1 MB, free: 4.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004304/0.2232, allocations: 63.69 kB / 450.1 MB, free: 3.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003419/0.2266, allocations: 0.8653 MB / 451 MB, free: 3.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005698/0.2324, allocations: 0.9512 MB / 452 MB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002482/0.2349, allocations: 0.511 MB / 452.5 MB, free: 1.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3849/0.6197, allocations: 3.321 MB / 455.8 MB, free: 37.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004662/0.6244, allocations: 2.982 MB / 458.8 MB, free: 37.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004647/0.6292, allocations: 1.54 MB / 460.3 MB, free: 37.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004248/0.6335, allocations: 2.007 MB / 462.3 MB, free: 36.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.6345, allocations: 431.8 kB / 462.7 MB, free: 36.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00187/0.6364, allocations: 0.5326 MB / 463.3 MB, free: 36.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001405/0.6379, allocations: 1.227 MB / 464.5 MB, free: 36.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002642/0.6405, allocations: 1.892 MB / 466.4 MB, free: 35.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006272/0.6468, allocations: 5.495 MB / 471.9 MB, free: 34.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.22e-05/0.6468, allocations: 4 kB / 471.9 MB, free: 34.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.6468, allocations: 0 / 471.9 MB, free: 34.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001728/0.647, allocations: 0 / 471.9 MB, free: 34.02 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.00971/0.6567, allocations: 3.822 MB / 475.7 MB, free: 31.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.541e-05/0.6569, allocations: 13.17 kB / 475.7 MB, free: 31.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.6582, allocations: 397.3 kB / 476.1 MB, free: 31.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003607/0.6618, allocations: 1.942 MB / 478.1 MB, free: 30.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.662, allocations: 220 kB / 478.3 MB, free: 30.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004109/0.6624, allocations: 286.1 kB / 478.6 MB, free: 30.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006498/0.669, allocations: 3.728 MB / 482.3 MB, free: 29.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.249e-05/0.6691, allocations: 10.09 kB / 482.3 MB, free: 29.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/0.6693, allocations: 120.9 kB / 482.4 MB, free: 28.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001588/0.6695, allocations: 137.5 kB / 482.5 MB, free: 28.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006721/0.6762, allocations: 3.161 MB / 485.7 MB, free: 27.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03863/0.7149, allocations: 11.58 MB / 497.3 MB, free: 22.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006498/0.7215, allocations: 2.168 MB / 499.5 MB, free: 20.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003599/0.7251, allocations: 1.233 MB / 0.489 GB, free: 20.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004663/0.7256, allocations: 214.6 kB / 0.4892 GB, free: 20.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.54e-05/0.7257, allocations: 43.25 kB / 0.4892 GB, free: 20.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.867e-06/0.7257, allocations: 9.125 kB / 0.4892 GB, free: 20.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.0235/0.7492, allocations: 8.201 MB / 0.4972 GB, free: 17.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.7493, allocations: 68.53 kB / 0.4973 GB, free: 16.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004005/0.7534, allocations: 1.939 MB / 0.4992 GB, free: 16.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.7535, allocations: 51.02 kB / 0.4992 GB, free: 15.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.7545, allocations: 1.358 MB / 0.5005 GB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005091/0.755, allocations: 0.5271 MB / 0.5011 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006478/0.7557, allocations: 319.9 kB / 0.5014 GB, free: 14.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.943e-05/0.7558, allocations: 301.1 kB / 0.5017 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.7571, allocations: 0.8854 MB / 0.5025 GB, free: 13.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.7588, allocations: 1.351 MB / 0.5038 GB, free: 12.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003457/0.7623, allocations: 2.382 MB / 0.5062 GB, free: 10.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/0.7623, allocations: 3.469 kB / 0.5062 GB, free: 10.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005156/0.7675, allocations: 2.925 MB / 0.509 GB, free: 8.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.7675, allocations: 12 kB / 0.509 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.7676, allocations: 12 kB / 0.509 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008316/0.7684, allocations: 392.4 kB / 0.5094 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.77, allocations: 448.5 kB / 0.5099 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005855/0.7758, allocations: 6.771 MB / 0.5165 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/0.7791, allocations: 123.8 kB / 0.5166 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/0.7793, allocations: 75.98 kB / 0.5167 GB, free: 356 kB / 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.003034/0.7823, allocations: 0.9008 MB / 0.5175 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008075/0.7831, allocations: 205.4 kB / 0.5177 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005888/0.789, allocations: 2.907 MB / 0.5206 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.7891, allocations: 16 kB / 0.5206 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/0.7891, allocations: 11.98 kB / 0.5206 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.7891, allocations: 3.984 kB / 0.5206 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/0.8042, allocations: 6.163 MB / 0.5266 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/0.8043, allocations: 4 kB / 0.5266 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.8054, allocations: 234.6 kB / 0.5268 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002489/0.808, allocations: 0.8168 MB / 0.5276 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/0.8082, allocations: 47.97 kB / 0.5277 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/0.8235, allocations: 10.76 MB / 0.5382 GB, free: 9.926 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.8236, allocations: 7 kB / 0.5382 GB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008123/0.8317, allocations: 4.174 MB / 0.5423 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002551/0.8343, allocations: 486.4 kB / 0.5427 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001295/0.8357, allocations: 47.55 kB / 0.5428 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/0.8373, allocations: 91.89 kB / 0.5429 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005279/0.8379, allocations: 124.9 kB / 0.543 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.838, allocations: 55.98 kB / 0.543 GB, free: 4.895 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0025/0.8405, allocations: 1.333 MB / 0.5443 GB, free: 3.539 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8405, allocations: 1.031 kB / 0.5443 GB, free: 3.539 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003079/0.8436, allocations: 0.5742 MB / 0.5449 GB, free: 2.965 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.0005765/0.8442, allocations: 199.7 kB / 0.5451 GB, free: 2.777 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006279/0.8505, allocations: 3.281 MB / 0.5483 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.8505, allocations: 8.062 kB / 0.5483 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/0.8532, allocations: 1.634 MB / 0.5499 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/0.8563, allocations: 0.5346 MB / 0.5504 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.8696, allocations: 5.822 MB / 0.5561 GB, free: 7.438 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002608/0.8723, allocations: 2.213 MB / 0.5583 GB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00231/0.8746, allocations: 461.7 kB / 0.5587 GB, free: 4.742 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004703/0.8751, allocations: 155.4 kB / 0.5589 GB, free: 4.594 MB / 430.1 MB Notification: Performance of SimCode: time 2.174e-06/0.8751, allocations: 0 / 0.5589 GB, free: 4.594 MB / 430.1 MB Notification: Performance of Templates: time 0.1235/0.9986, allocations: 32.79 MB / 0.5909 GB, free: 3.945 MB / 462.1 MB 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)