Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.009591/0.009591, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002193/0.002193, allocations: 199.4 kB / 16.68 MB, free: 5.969 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.592/1.592, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.001226/0.001226, allocations: 50 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1065, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01474/0.1213, allocations: 10.28 MB / 383.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007659/0.1291, allocations: 3.47 MB / 386.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001743/0.1308, allocations: 47.81 kB / 387 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002578/0.1335, allocations: 0.7724 MB / 387.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003257/0.1368, allocations: 0.8346 MB / 388.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.1381, allocations: 419.4 kB / 389 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003881/0.142, allocations: 2.759 MB / 391.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002799/0.1448, allocations: 2.358 MB / 394.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001894/0.1468, allocations: 1.257 MB / 395.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.1492, allocations: 1.572 MB / 396.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005429/0.1497, allocations: 332 kB / 397.3 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009507/0.1507, allocations: 447.8 kB / 397.7 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008497/0.1515, allocations: 0.9311 MB / 398.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001543/0.1531, allocations: 1.509 MB / 400.1 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004356/0.1575, allocations: 4.402 MB / 404.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1575, allocations: 3.984 kB / 404.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1575, allocations: 4 kB / 404.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.954e-05/0.1576, allocations: 0 / 404.6 MB, free: 1.758 MB / 334.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.006413/0.164, allocations: 3.117 MB / 407.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1641, allocations: 15.89 kB / 407.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008023/0.1649, allocations: 323 kB / 408 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/0.1676, allocations: 1.545 MB / 409.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.1677, allocations: 168.4 kB / 409.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003399/0.1681, allocations: 231.9 kB / 409.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005446/0.1735, allocations: 2.905 MB / 412.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.855e-05/0.1736, allocations: 8 kB / 412.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/0.1738, allocations: 92 kB / 412.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/0.174, allocations: 112.3 kB / 413 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005291/0.1793, allocations: 2.433 MB / 415.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01767/0.197, allocations: 9.046 MB / 424.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.1996, allocations: 1.689 MB / 426.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/0.2014, allocations: 0.9766 MB / 427.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003283/0.2018, allocations: 211.2 kB / 427.4 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.2018, allocations: 47.5 kB / 427.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.296e-06/0.2018, allocations: 4 kB / 427.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01455/0.2164, allocations: 6.559 MB / 434 MB, free: 3.453 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.2165, allocations: 64.41 kB / 434.1 MB, free: 3.379 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00241/0.2189, allocations: 1.569 MB / 435.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.219, allocations: 49.64 kB / 435.7 MB, free: 1.746 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008163/0.2199, allocations: 1.13 MB / 436.8 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.2202, allocations: 452.2 kB / 437.3 MB, free: 160 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004302/0.2207, allocations: 271.5 kB / 437.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.2208, allocations: 313.1 kB / 437.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.222, allocations: 0.6988 MB / 438.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/0.2234, allocations: 1.147 MB / 439.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.2262, allocations: 1.968 MB / 441.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.2262, allocations: 4 kB / 441.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004328/0.2306, allocations: 2.527 MB / 444.2 MB, free: 8.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.2306, allocations: 11.91 kB / 444.2 MB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/0.2306, allocations: 16 kB / 444.2 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000996/0.2316, allocations: 423.3 kB / 444.6 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.2329, allocations: 351.4 kB / 445 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007294/0.2402, allocations: 7.131 MB / 452.1 MB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.2419, allocations: 103.8 kB / 452.2 MB, free: 380 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002072/0.2422, allocations: 67.98 kB / 452.3 MB, free: 312 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * 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 {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.306/0.5481, allocations: 0.7167 MB / 453 MB, free: 68.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006986/0.5488, allocations: 177.7 kB / 453.1 MB, free: 68.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005296/0.5542, allocations: 2.188 MB / 455.3 MB, free: 68.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.5542, allocations: 11.88 kB / 455.3 MB, free: 68.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.5542, allocations: 8.875 kB / 455.4 MB, free: 68.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/0.5542, allocations: 5.578 kB / 455.4 MB, free: 68.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009862/0.5641, allocations: 4.777 MB / 460.1 MB, free: 66.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.5642, allocations: 3.656 kB / 460.1 MB, free: 66.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.5652, allocations: 222.8 kB / 460.4 MB, free: 66.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001348/0.5666, allocations: 459.7 kB / 460.8 MB, free: 66.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.5667, allocations: 36.34 kB / 460.8 MB, free: 66.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007731/0.5744, allocations: 8.67 MB / 469.5 MB, free: 59.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.5745, allocations: 8.375 kB / 469.5 MB, free: 59.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005516/0.58, allocations: 3.228 MB / 472.8 MB, free: 58.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009657/0.581, allocations: 408.2 kB / 473.2 MB, free: 58.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/0.5813, allocations: 33.61 kB / 473.2 MB, free: 58.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009074/0.5822, allocations: 91.34 kB / 473.3 MB, free: 58.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.5824, allocations: 105.7 kB / 473.4 MB, free: 58.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-05/0.5825, allocations: 41.56 kB / 473.4 MB, free: 58.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001431/0.5839, allocations: 1.065 MB / 474.5 MB, free: 57.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5839, allocations: 0 / 474.5 MB, free: 57.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001705/0.5856, allocations: 493.3 kB / 475 MB, free: 57.69 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003484/0.586, allocations: 196 kB / 475.2 MB, free: 57.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00296/0.589, allocations: 2.296 MB / 477.5 MB, free: 56.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.589, allocations: 3.812 kB / 477.5 MB, free: 56.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001989/0.591, allocations: 1.476 MB / 478.9 MB, free: 55.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.593, allocations: 483.7 kB / 479.4 MB, free: 55.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006264/0.5993, allocations: 4.757 MB / 484.2 MB, free: 51.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.6004, allocations: 1.867 MB / 486 MB, free: 49.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009935/0.6014, allocations: 386.9 kB / 486.4 MB, free: 49.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003093/0.6017, allocations: 123.4 kB / 486.5 MB, free: 49.06 MB / 382.1 MB Notification: Performance of SimCode: time 1.943e-06/0.6017, allocations: 0 / 486.5 MB, free: 49.06 MB / 382.1 MB Notification: Performance of Templates: time 0.03582/0.6376, allocations: 26.83 MB / 0.5013 GB, free: 22.21 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)