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.001055/0.001055, allocations: 90.27 kB / 16.32 MB, free: 6.449 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.00109/0.00109, allocations: 181.4 kB / 17.21 MB, free: 6.32 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.582/1.582, allocations: 205.4 MB / 223.4 MB, free: 5.727 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.0005033/0.0005035, allocations: 12 kB / 280.2 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.303, allocations: 47.59 MB / 327.7 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01032/0.3134, allocations: 9.074 MB / 336.8 MB, free: 10.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007487/0.3209, allocations: 3.28 MB / 340.1 MB, free: 7.148 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002464/0.3234, allocations: 51.75 kB / 340.1 MB, free: 7.098 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002742/0.3262, allocations: 0.6018 MB / 340.7 MB, free: 6.492 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003926/0.3302, allocations: 0.7107 MB / 341.5 MB, free: 5.777 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.3316, allocations: 271.6 kB / 341.7 MB, free: 5.512 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00478/0.3364, allocations: 2.794 MB / 344.5 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003517/0.34, allocations: 1.548 MB / 346.1 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002727/0.3427, allocations: 0.9415 MB / 347 MB, free: 184 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003234/0.346, allocations: 1.292 MB / 348.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009285/0.3469, allocations: 144 kB / 348.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.3485, allocations: 215.8 kB / 348.6 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.35, allocations: 0.7048 MB / 349.4 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001445/0.3515, allocations: 0.5159 MB / 349.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004966/0.3565, allocations: 3.518 MB / 353.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3565, allocations: 0 / 353.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3565, allocations: 0 / 353.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002013/0.3567, allocations: 0 / 353.4 MB, free: 9.773 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.007643/0.3643, allocations: 2.632 MB / 356 MB, free: 7.078 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.3644, allocations: 8.031 kB / 356 MB, free: 7.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001576/0.366, allocations: 308.6 kB / 356.3 MB, free: 6.766 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004269/0.3703, allocations: 1.466 MB / 357.8 MB, free: 5.242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.3705, allocations: 168.4 kB / 358 MB, free: 5.074 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003769/0.3709, allocations: 220 kB / 358.2 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005227/0.3761, allocations: 2.909 MB / 361.1 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.346e-05/0.3762, allocations: 11.91 kB / 361.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001922/0.3764, allocations: 91.95 kB / 361.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.3765, allocations: 112.3 kB / 361.3 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004336/0.3809, allocations: 2.437 MB / 363.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01435/0.3952, allocations: 9.153 MB / 372.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00235/0.3976, allocations: 1.701 MB / 374.6 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00173/0.3994, allocations: 0.9994 MB / 375.6 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003038/0.3997, allocations: 207.2 kB / 375.8 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/0.3998, allocations: 44.03 kB / 375.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=105): time 3.967e-06/0.3998, allocations: 3.938 kB / 375.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=122): time 0.014/0.4138, allocations: 6.656 MB / 382.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.4139, allocations: 68.39 kB / 382.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/0.4163, allocations: 1.553 MB / 384.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.231e-05/0.4164, allocations: 45.7 kB / 384.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008431/0.4172, allocations: 1.108 MB / 385.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003716/0.4176, allocations: 429.8 kB / 385.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.964e-05/0.4177, allocations: 32 kB / 385.7 MB, free: 8.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.4179, allocations: 365.9 kB / 386.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.4191, allocations: 0.7105 MB / 386.8 MB, free: 7.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.4206, allocations: 1.151 MB / 387.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.4221, allocations: 0.8964 MB / 388.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.4221, allocations: 7.938 kB / 388.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004099/0.4262, allocations: 2.522 MB / 391.4 MB, free: 2.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.4263, allocations: 12.28 kB / 391.4 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.4263, allocations: 16 kB / 391.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009674/0.4273, allocations: 415.1 kB / 391.8 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.4285, allocations: 355.5 kB / 392.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006719/0.4352, allocations: 6.553 MB / 398.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.4367, allocations: 107.9 kB / 398.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.4369, allocations: 67.98 kB / 398.9 MB, free: 10.74 MB / 334.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 (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 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001789/0.4387, allocations: 0.7121 MB / 399.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000591/0.4393, allocations: 177.8 kB / 399.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00436/0.4437, allocations: 2.202 MB / 402 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.4437, allocations: 12 kB / 402 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.4437, allocations: 4 kB / 402 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.4437, allocations: 7.969 kB / 402 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009453/0.4532, allocations: 4.813 MB / 406.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.4532, allocations: 4 kB / 406.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009438/0.4542, allocations: 227.7 kB / 407 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.4554, allocations: 451.5 kB / 407.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/0.4555, allocations: 35.98 kB / 407.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007894/0.4634, allocations: 7.977 MB / 415.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.4635, allocations: 7.938 kB / 415.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00538/0.4688, allocations: 3.24 MB / 418.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.4699, allocations: 402.8 kB / 419.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004992/0.4704, allocations: 39.94 kB / 419.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.4716, allocations: 91.89 kB / 419.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/0.4719, allocations: 100.8 kB / 419.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-05/0.472, allocations: 39.98 kB / 419.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002039/0.474, allocations: 1.063 MB / 420.4 MB, free: 4.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.474, allocations: 0 / 420.4 MB, free: 4.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002074/0.4761, allocations: 480 kB / 420.9 MB, free: 3.824 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 6,(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.0003713/0.4765, allocations: 166.9 kB / 421.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004118/0.4806, allocations: 2.289 MB / 423.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.4806, allocations: 1.875 kB / 423.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002556/0.4832, allocations: 1.485 MB / 424.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003151/0.4864, allocations: 461.6 kB / 425.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.4967, allocations: 5.599 MB / 430.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002845/0.4996, allocations: 1.871 MB / 432.8 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001437/0.501, allocations: 386.9 kB / 433.1 MB, free: 7.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004572/0.5015, allocations: 119.4 kB / 433.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of SimCode: time 1.884e-06/0.5015, allocations: 0 / 433.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of Templates: time 0.2162/0.7177, allocations: 24.23 MB / 457.5 MB, free: 111.8 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (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)