Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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) 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(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 95.89 kB / 16.3 MB, free: 5.992 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.001234/0.001234, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.655/1.655, allocations: 205.4 MB / 223.4 MB, free: 5.543 MB / 174.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: Performance of FrontEnd - loaded program: time 0.0004868/0.000487, allocations: 14.81 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3277, allocations: 47.59 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.0105/0.3382, allocations: 8.327 MB / 336 MB, free: 11.03 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008268/0.3466, allocations: 3.365 MB / 339.4 MB, free: 7.805 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001705/0.3483, allocations: 51.69 kB / 339.5 MB, free: 7.754 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001708/0.35, allocations: 0.6375 MB / 340.1 MB, free: 7.113 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002434/0.3525, allocations: 0.7205 MB / 340.8 MB, free: 6.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008466/0.3533, allocations: 267.6 kB / 341.1 MB, free: 6.129 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00312/0.3565, allocations: 1.813 MB / 342.9 MB, free: 4.312 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002081/0.3586, allocations: 1.552 MB / 344.4 MB, free: 2.727 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.36, allocations: 0.8639 MB / 345.3 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001427/0.3614, allocations: 1.128 MB / 346.4 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002556/0.3617, allocations: 144 kB / 346.6 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000559/0.3623, allocations: 207.9 kB / 346.8 MB, free: 392 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000695/0.363, allocations: 0.6699 MB / 347.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005422/0.3635, allocations: 0.5199 MB / 348 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003359/0.3669, allocations: 3.459 MB / 351.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3669, allocations: 0 / 351.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3669, allocations: 0 / 351.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001156/0.367, allocations: 0 / 351.4 MB, free: 11.71 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005859/0.3729, allocations: 2.613 MB / 354 MB, free: 9.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.373, allocations: 8.031 kB / 354 MB, free: 9.031 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009226/0.3739, allocations: 308.6 kB / 354.3 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00307/0.377, allocations: 1.481 MB / 355.8 MB, free: 7.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.3772, allocations: 164.4 kB / 356 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003705/0.3776, allocations: 220 kB / 356.2 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005497/0.3831, allocations: 2.89 MB / 359.1 MB, free: 3.832 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.843e-05/0.3831, allocations: 7.906 kB / 359.1 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.3834, allocations: 91.95 kB / 359.2 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001361/0.3835, allocations: 120.3 kB / 359.3 MB, free: 3.613 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004474/0.388, allocations: 2.437 MB / 361.7 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01509/0.4031, allocations: 9.098 MB / 370.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.4055, allocations: 1.709 MB / 372.6 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000334/0.4059, allocations: 203.2 kB / 372.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.4059, allocations: 43.56 kB / 372.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of pre-optimization done (n=105): time 5.74e-06/0.4059, allocations: 0 / 372.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01778/0.4237, allocations: 7.502 MB / 380.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.4238, allocations: 64.41 kB / 380.4 MB, free: 13.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002704/0.4265, allocations: 1.503 MB / 381.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.4267, allocations: 49.7 kB / 381.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009858/0.4277, allocations: 1.088 MB / 383 MB, free: 11.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004714/0.4281, allocations: 453.6 kB / 383.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.663e-05/0.4282, allocations: 31.94 kB / 383.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.4285, allocations: 373.9 kB / 383.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.4297, allocations: 0.7535 MB / 384.6 MB, free: 9.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/0.4313, allocations: 1.184 MB / 385.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.4328, allocations: 0.9316 MB / 386.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.4328, allocations: 7.938 kB / 386.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.004632/0.4374, allocations: 2.629 MB / 389.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.4375, allocations: 27.88 kB / 389.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.4375, allocations: 12 kB / 389.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.4389, allocations: 0.545 MB / 389.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.4402, allocations: 355.4 kB / 390.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008123/0.4483, allocations: 6.499 MB / 396.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.45, allocations: 123.8 kB / 396.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/0.4502, allocations: 64 kB / 397 MB, free: 12.82 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (167): * Single equations (assignments): 164 * 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: 2 * 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: 2 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001588/0.4518, allocations: 0.712 MB / 397.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003453/0.4521, allocations: 173.8 kB / 397.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00432/0.4565, allocations: 2.344 MB / 400.2 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/0.4565, allocations: 12 kB / 400.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.4565, allocations: 4 kB / 400.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.4565, allocations: 7.969 kB / 400.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008651/0.4652, allocations: 4.842 MB / 405 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.4652, allocations: 288 / 405 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009273/0.4662, allocations: 227.7 kB / 405.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/0.4677, allocations: 0.5683 MB / 405.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.28e-05/0.4678, allocations: 31.98 kB / 405.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009303/0.4771, allocations: 8.003 MB / 413.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.4772, allocations: 4 kB / 413.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00647/0.4836, allocations: 3.509 MB / 417.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.4849, allocations: 402.8 kB / 417.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002608/0.4851, allocations: 31.98 kB / 417.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008835/0.486, allocations: 95.89 kB / 417.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.4864, allocations: 96.77 kB / 418 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.028e-05/0.4864, allocations: 35.98 kB / 418 MB, free: 7.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001751/0.4882, allocations: 1.016 MB / 419 MB, free: 6.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4882, allocations: 4 kB / 419.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002159/0.4904, allocations: 0.496 MB / 419.5 MB, free: 5.539 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * 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 (102): * Single equations (assignments): 99 * 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 {(6,72.2%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003825/0.4908, allocations: 159.2 kB / 419.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004763/0.4955, allocations: 2.358 MB / 422.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4956, allocations: 0 / 422.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002732/0.4983, allocations: 1.493 MB / 423.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.5008, allocations: 433 kB / 424 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009806/0.5106, allocations: 5.613 MB / 429.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001829/0.5125, allocations: 1.919 MB / 431.5 MB, free: 9.391 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001519/0.5141, allocations: 382.8 kB / 431.9 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003333/0.5144, allocations: 123.4 kB / 432 MB, free: 8.891 MB / 366.1 MB Notification: Performance of SimCode: time 1.193e-06/0.5144, allocations: 3.938 kB / 432 MB, free: 8.887 MB / 366.1 MB Notification: Performance of Templates: time 0.3067/0.8211, allocations: 25.17 MB / 457.2 MB, free: 112.3 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) Environment - environmentSimulation: