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.0008483/0.0008483, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008856/0.0008856, allocations: 177.3 kB / 15.94 MB, free: 228 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.288/1.288, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.2744/0.2744, allocations: 40 MB / 310.4 MB, free: 9.684 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.0004743/0.0004744, allocations: 12 kB / 378.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1002, allocations: 57.96 MB / 436.8 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.009665/0.1099, allocations: 9.489 MB / 446.2 MB, free: 8.801 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006628/0.1166, allocations: 3.813 MB / 450.1 MB, free: 4.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00156/0.1182, allocations: 55.69 kB / 450.1 MB, free: 4.922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002127/0.1203, allocations: 0.7268 MB / 450.8 MB, free: 4.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00323/0.1236, allocations: 0.849 MB / 451.7 MB, free: 3.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.1247, allocations: 351.5 kB / 452 MB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003557/0.1283, allocations: 2.154 MB / 454.2 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1656/0.294, allocations: 2.062 MB / 456.2 MB, free: 35.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.2954, allocations: 1.048 MB / 457.3 MB, free: 35.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.2971, allocations: 1.418 MB / 458.7 MB, free: 35.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003796/0.2974, allocations: 167.7 kB / 458.9 MB, free: 35.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006413/0.2981, allocations: 249.1 kB / 459.1 MB, free: 35.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007016/0.2988, allocations: 0.8719 MB / 460 MB, free: 35.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005734/0.2994, allocations: 0.6314 MB / 460.6 MB, free: 35.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002993/0.3024, allocations: 4.416 MB / 465 MB, free: 34.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.3024, allocations: 0 / 465 MB, free: 34.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3024, allocations: 0 / 465 MB, free: 34.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00011/0.3025, allocations: 0 / 465 MB, free: 34.79 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.005921/0.3085, allocations: 3.225 MB / 468.3 MB, free: 33.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.3085, allocations: 10.09 kB / 468.3 MB, free: 33.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.3096, allocations: 396.8 kB / 468.7 MB, free: 33.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003217/0.3128, allocations: 1.901 MB / 470.6 MB, free: 32.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.313, allocations: 224 kB / 470.8 MB, free: 32.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004205/0.3134, allocations: 279.7 kB / 471.1 MB, free: 32.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005819/0.3193, allocations: 3.673 MB / 474.7 MB, free: 32.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.095e-05/0.3194, allocations: 6.844 kB / 474.7 MB, free: 32.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.3196, allocations: 116.8 kB / 474.9 MB, free: 32.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001113/0.3197, allocations: 145.7 kB / 475 MB, free: 32.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00464/0.3244, allocations: 3.128 MB / 478.1 MB, free: 32.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01702/0.3414, allocations: 11.5 MB / 489.6 MB, free: 28.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/0.3443, allocations: 2.106 MB / 491.7 MB, free: 26.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002552/0.3445, allocations: 213.4 kB / 491.9 MB, free: 26.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.3446, allocations: 46.27 kB / 492 MB, free: 26.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.929e-06/0.3446, allocations: 0 / 492 MB, free: 26.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01618/0.3608, allocations: 8.152 MB / 0.4884 GB, free: 23.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.3608, allocations: 68.09 kB / 0.4885 GB, free: 23.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/0.3632, allocations: 1.869 MB / 0.4903 GB, free: 22.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.3634, allocations: 52.36 kB / 0.4904 GB, free: 22.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006113/0.364, allocations: 1.363 MB / 0.4917 GB, free: 21.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003094/0.3643, allocations: 0.5186 MB / 0.4922 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.733e-05/0.3644, allocations: 35.41 kB / 0.4922 GB, free: 21.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.572e-05/0.3645, allocations: 384.7 kB / 0.4926 GB, free: 20.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.3657, allocations: 0.8746 MB / 0.4934 GB, free: 20.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/0.367, allocations: 1.32 MB / 0.4947 GB, free: 19.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.3684, allocations: 1.079 MB / 0.4958 GB, free: 18.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.3684, allocations: 4.688 kB / 0.4958 GB, free: 18.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004205/0.3727, allocations: 2.876 MB / 0.4986 GB, free: 17.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.3727, allocations: 10.66 kB / 0.4986 GB, free: 17.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.3727, allocations: 14.31 kB / 0.4986 GB, free: 17.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007195/0.3735, allocations: 364.5 kB / 0.499 GB, free: 16.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.375, allocations: 458.4 kB / 0.4994 GB, free: 16.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00422/0.3792, allocations: 6.119 MB / 0.5054 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.3811, allocations: 119.8 kB / 0.5055 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.3812, allocations: 72.67 kB / 0.5056 GB, free: 11.43 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 (210): * Single equations (assignments): 206 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001834/0.3831, allocations: 0.9125 MB / 0.5065 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004497/0.3835, allocations: 206.9 kB / 0.5067 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004047/0.3876, allocations: 2.882 MB / 0.5095 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.3876, allocations: 21.38 kB / 0.5095 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.3876, allocations: 5.469 kB / 0.5095 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.3877, allocations: 13.17 kB / 0.5095 GB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009136/0.3968, allocations: 6.032 MB / 0.5154 GB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.3969, allocations: 4 kB / 0.5154 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009361/0.3978, allocations: 239.6 kB / 0.5156 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/0.3995, allocations: 0.8045 MB / 0.5164 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.3997, allocations: 35.98 kB / 0.5165 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/0.4108, allocations: 10.11 MB / 0.5263 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.4109, allocations: 4 kB / 0.5263 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006898/0.4178, allocations: 4.368 MB / 0.5306 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.419, allocations: 490.3 kB / 0.5311 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003032/0.4193, allocations: 32 kB / 0.5311 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.4204, allocations: 99.88 kB / 0.5312 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002687/0.4206, allocations: 121 kB / 0.5313 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-05/0.4207, allocations: 47.98 kB / 0.5314 GB, free: 3.094 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001801/0.4226, allocations: 1.284 MB / 0.5326 GB, free: 1.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4226, allocations: 0 / 0.5326 GB, free: 1.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001927/0.4245, allocations: 0.5625 MB / 0.5332 GB, free: 1.227 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (116): * Single equations (assignments): 113 * 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,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003283/0.4248, allocations: 163 kB / 0.5333 GB, free: 1.059 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003504/0.4283, allocations: 2.584 MB / 0.5358 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4284, allocations: 256 / 0.5358 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/0.4307, allocations: 1.672 MB / 0.5375 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.433, allocations: 496.9 kB / 0.5379 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0092/0.4422, allocations: 6.831 MB / 0.5446 GB, free: 5.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/0.4441, allocations: 2.272 MB / 0.5468 GB, free: 3.027 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001557/0.4457, allocations: 469.6 kB / 0.5473 GB, free: 2.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004596/0.4462, allocations: 151.4 kB / 0.5474 GB, free: 2.422 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4462, allocations: 0 / 0.5474 GB, free: 2.422 MB / 414.1 MB Notification: Performance of Templates: time 0.04781/0.494, allocations: 29.36 MB / 0.5761 GB, free: 5.156 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: