Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.conf.json 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/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.00101, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03675/0.03675, allocations: 8.795 MB / 25.53 MB, free: 3.746 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 251.3 MB, free: 7.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009614/0.0009613, allocations: 97.22 kB / 303.6 MB, free: 14.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.89 kB / 366 MB, free: 200 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1741, allocations: 51.57 MB / 417.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02049/0.1946, allocations: 28.21 MB / 445.7 MB, free: 8.59 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01408/0.2087, allocations: 8.388 MB / 454.1 MB, free: 184 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003983/0.2127, allocations: 203.4 kB / 454.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01564/0.2284, allocations: 7.678 MB / 462 MB, free: 8.289 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008578/0.237, allocations: 2.566 MB / 464.6 MB, free: 5.715 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005393/0.2424, allocations: 1.739 MB / 466.3 MB, free: 3.98 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01202/0.2545, allocations: 10.05 MB / 476.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02602/0.2805, allocations: 17.8 MB / 494.2 MB, free: 7.953 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007159/0.2877, allocations: 4.712 MB / 498.9 MB, free: 3.227 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1824/0.4701, allocations: 5.795 MB / 0.4928 GB, free: 19.35 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003507/0.4737, allocations: 1.049 MB / 0.4939 GB, free: 19.35 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004638/0.4784, allocations: 1.397 MB / 0.4952 GB, free: 19.35 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002632/0.481, allocations: 2.481 MB / 0.4977 GB, free: 19.35 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01033/0.4914, allocations: 5.34 MB / 0.5029 GB, free: 19.03 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01739/0.5088, allocations: 20.17 MB / 0.5226 GB, free: 10.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.5088, allocations: 0 / 0.5226 GB, free: 10.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5088, allocations: 0 / 0.5226 GB, free: 10.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004676/0.5093, allocations: 0 / 0.5226 GB, free: 10.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.0295/0.5388, allocations: 11.88 MB / 0.5342 GB, free: 3.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.5389, allocations: 11.19 kB / 0.5342 GB, free: 3.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02661/0.5655, allocations: 5.606 MB / 0.5397 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.5793, allocations: 6.134 MB / 0.5457 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008922/0.5802, allocations: 0.7096 MB / 0.5463 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003541/0.5838, allocations: 0.9315 MB / 0.5473 GB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03491/0.6187, allocations: 15.07 MB / 0.562 GB, free: 10.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003364/0.6191, allocations: 15.09 kB / 0.562 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002211/0.6213, allocations: 396.8 kB / 0.5624 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005273/0.6218, allocations: 0.5156 MB / 0.5629 GB, free: 9.738 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02757/0.6494, allocations: 13.73 MB / 0.5763 GB, free: 12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07853/0.728, allocations: 47.84 MB / 0.623 GB, free: 11.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01993/0.748, allocations: 28.77 MB / 0.6511 GB, free: 11.28 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004039/0.752, allocations: 2.895 MB / 0.6539 GB, free: 8.371 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003121/0.7524, allocations: 237.2 kB / 0.6541 GB, free: 8.113 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.29e-05/0.7524, allocations: 77.48 kB / 0.6542 GB, free: 8.027 MB / 490.7 MB Notification: Performance of pre-optimization done (n=372): time 4.99e-06/0.7524, allocations: 0 / 0.6542 GB, free: 8.027 MB / 490.7 MB Notification: Performance of matching and sorting (n=380): time 0.1989/0.9514, allocations: 14.69 MB / 0.6686 GB, free: 166.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.718e-05/0.9514, allocations: 98.17 kB / 0.6687 GB, free: 166.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005154/0.9566, allocations: 3.757 MB / 0.6723 GB, free: 165.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004465/0.9571, allocations: 86.2 kB / 0.6724 GB, free: 165.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002025/0.9591, allocations: 4.082 MB / 0.6764 GB, free: 162.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009115/0.96, allocations: 1.303 MB / 0.6777 GB, free: 161.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001532/0.9616, allocations: 1.168 MB / 0.6788 GB, free: 161 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 3.28e-05/0.9616, allocations: 303.1 kB / 0.6791 GB, free: 160.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003314/0.9649, allocations: 2.574 MB / 0.6816 GB, free: 159.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003741/0.9687, allocations: 5.056 MB / 0.6866 GB, free: 155.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00724/0.9759, allocations: 8.248 MB / 0.6946 GB, free: 149.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-05/0.976, allocations: 22.62 kB / 0.6946 GB, free: 149.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01155/0.9876, allocations: 8.603 MB / 0.703 GB, free: 146.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.9877, allocations: 39.38 kB / 0.7031 GB, free: 146.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-05/0.9878, allocations: 83.56 kB / 0.7031 GB, free: 146.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/0.9898, allocations: 0.8573 MB / 0.704 GB, free: 146.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004091/0.9939, allocations: 1.367 MB / 0.7053 GB, free: 145.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008723/1.003, allocations: 8.345 MB / 0.7135 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00401/1.007, allocations: 332.9 kB / 0.7138 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006671/1.007, allocations: 303.3 kB / 0.7141 GB, free: 137.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004855/1.012, allocations: 3.508 MB / 0.7175 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007986/1.013, allocations: 413.1 kB / 0.7179 GB, free: 133.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007949/1.021, allocations: 5.855 MB / 0.7236 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/1.021, allocations: 36 kB / 0.7236 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/1.021, allocations: 12 kB / 0.7237 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.803e-05/1.021, allocations: 23.69 kB / 0.7237 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01978/1.041, allocations: 14.76 MB / 0.7381 GB, free: 114.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/1.041, allocations: 4 kB / 0.7381 GB, free: 114.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/1.043, allocations: 0.667 MB / 0.7387 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001831/1.045, allocations: 0.7063 MB / 0.7394 GB, free: 112.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002418/1.045, allocations: 79.98 kB / 0.7395 GB, free: 112.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007183/1.053, allocations: 7.398 MB / 0.7467 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.053, allocations: 7.938 kB / 0.7467 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03842/1.091, allocations: 28.79 MB / 0.7749 GB, free: 75.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002343/1.093, allocations: 0.8707 MB / 0.7757 GB, free: 74.94 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000583/1.094, allocations: 71.94 kB / 0.7758 GB, free: 74.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001784/1.096, allocations: 184 kB / 0.776 GB, free: 74.69 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005053/1.096, allocations: 250.6 kB / 0.7762 GB, free: 74.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.097, allocations: 111.8 kB / 0.7763 GB, free: 74.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003261/1.1, allocations: 2.528 MB / 0.7788 GB, free: 71.83 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.1, allocations: 4 kB / 0.7788 GB, free: 71.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006777/1.107, allocations: 1.862 MB / 0.7806 GB, free: 69.96 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008147/1.107, allocations: 245.8 kB / 0.7808 GB, free: 69.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008841/1.116, allocations: 6.532 MB / 0.7872 GB, free: 63.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.116, allocations: 0 / 0.7872 GB, free: 63.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003778/1.12, allocations: 2.961 MB / 0.7901 GB, free: 60.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00435/1.124, allocations: 0.913 MB / 0.791 GB, free: 59.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.15, allocations: 22.51 MB / 0.813 GB, free: 36.67 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005101/1.155, allocations: 6.084 MB / 0.8189 GB, free: 30.54 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004718/1.16, allocations: 1.873 MB / 0.8207 GB, free: 28.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009315/1.161, allocations: 351.4 kB / 0.8211 GB, free: 28.32 MB / 490.7 MB Notification: Performance of SimCode: time 6.21e-07/1.161, allocations: 0 / 0.8211 GB, free: 28.32 MB / 490.7 MB Notification: Performance of Templates: time 0.2758/1.437, allocations: 67.67 MB / 0.8872 GB, free: 120.8 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)