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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007381/0.007382, allocations: 101.9 kB / 15.73 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 239.4 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001589, allocations: 192.5 kB / 289.7 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03407/0.03407, allocations: 8.796 MB / 348.6 MB, free: 4.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 75.88 kB / 463.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 51.57 MB / 0.5034 GB, free: 9.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2386/0.3426, allocations: 28.72 MB / 0.5315 GB, free: 4.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.3612, allocations: 8.453 MB / 0.5397 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006683/0.368, allocations: 213.9 kB / 0.5399 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01915/0.3872, allocations: 8.127 MB / 0.5479 GB, free: 3.379 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01229/0.3995, allocations: 2.806 MB / 0.5506 GB, free: 2.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006022/0.4056, allocations: 1.867 MB / 0.5524 GB, free: 2.371 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01507/0.4206, allocations: 9.987 MB / 0.5622 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03339/0.4541, allocations: 21.35 MB / 0.583 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01023/0.4644, allocations: 5.383 MB / 0.5883 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01111/0.4755, allocations: 6.037 MB / 0.5942 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004992/0.4805, allocations: 1.543 MB / 0.5957 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008569/0.4891, allocations: 1.891 MB / 0.5975 GB, free: 472 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007061/0.4963, allocations: 2.989 MB / 0.6004 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01123/0.5075, allocations: 5.848 MB / 0.6062 GB, free: 7.672 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02235/0.5299, allocations: 20.63 MB / 0.6263 GB, free: 3.383 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.5299, allocations: 0 / 0.6263 GB, free: 3.383 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5299, allocations: 0 / 0.6263 GB, free: 3.383 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005079/0.5305, allocations: 0 / 0.6263 GB, free: 3.383 MB / 430.1 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.0351/0.5656, allocations: 11.84 MB / 0.6379 GB, free: 7.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.5656, allocations: 11.97 kB / 0.6379 GB, free: 7.508 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03132/0.597, allocations: 5.634 MB / 0.6434 GB, free: 1.922 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.6092, allocations: 6.309 MB / 0.6495 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006456/0.6099, allocations: 0.7067 MB / 0.6502 GB, free: 10.87 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002925/0.6128, allocations: 0.9296 MB / 0.6511 GB, free: 9.953 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0297/0.6425, allocations: 15.07 MB / 0.6659 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/0.6428, allocations: 15.81 kB / 0.6659 GB, free: 10.81 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001256/0.644, allocations: 394.5 kB / 0.6663 GB, free: 10.44 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004588/0.6445, allocations: 0.5194 MB / 0.6668 GB, free: 9.914 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02468/0.6692, allocations: 13.74 MB / 0.6802 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5137/1.183, allocations: 47.3 MB / 0.7264 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01881/1.202, allocations: 28.78 MB / 0.7545 GB, free: 107.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004573/1.206, allocations: 2.893 MB / 0.7573 GB, free: 107.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003134/1.207, allocations: 240.4 kB / 0.7575 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.969e-05/1.207, allocations: 76.23 kB / 0.7576 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.491e-06/1.207, allocations: 1.156 kB / 0.7576 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.0287/1.236, allocations: 14.76 MB / 0.772 GB, free: 104.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/1.236, allocations: 92.23 kB / 0.7721 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004466/1.24, allocations: 3.766 MB / 0.7758 GB, free: 104.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002783/1.24, allocations: 84.39 kB / 0.7759 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001674/1.242, allocations: 4.08 MB / 0.7799 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009256/1.243, allocations: 1.311 MB / 0.7811 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/1.245, allocations: 1.159 MB / 0.7823 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.935e-05/1.245, allocations: 312.2 kB / 0.7826 GB, free: 101 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003068/1.248, allocations: 2.573 MB / 0.7851 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003821/1.252, allocations: 5.055 MB / 0.79 GB, free: 96.22 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007376/1.259, allocations: 8.256 MB / 0.7981 GB, free: 90.32 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.612e-05/1.259, allocations: 27.53 kB / 0.7981 GB, free: 90.32 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01156/1.271, allocations: 8.617 MB / 0.8065 GB, free: 86.86 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.182e-05/1.271, allocations: 39.88 kB / 0.8066 GB, free: 86.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/1.271, allocations: 82.56 kB / 0.8066 GB, free: 86.86 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/1.273, allocations: 0.8747 MB / 0.8075 GB, free: 86.57 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004188/1.277, allocations: 1.357 MB / 0.8088 GB, free: 86.23 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00941/1.287, allocations: 9.022 MB / 0.8176 GB, free: 77.67 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/1.291, allocations: 327.4 kB / 0.8179 GB, free: 77.35 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005782/1.291, allocations: 308 kB / 0.8182 GB, free: 77.05 MB / 0.5138 GB 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.004845/1.296, allocations: 3.517 MB / 0.8217 GB, free: 73.52 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008472/1.297, allocations: 410.9 kB / 0.8221 GB, free: 73.11 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00789/1.305, allocations: 5.86 MB / 0.8278 GB, free: 67.21 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/1.305, allocations: 40 kB / 0.8278 GB, free: 67.18 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.305, allocations: 8 kB / 0.8278 GB, free: 67.17 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.882e-05/1.305, allocations: 19.92 kB / 0.8278 GB, free: 67.15 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0195/1.325, allocations: 14.48 MB / 0.842 GB, free: 52.65 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/1.325, allocations: 8.031 kB / 0.842 GB, free: 52.64 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002394/1.327, allocations: 0.6593 MB / 0.8426 GB, free: 51.98 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001893/1.329, allocations: 0.7253 MB / 0.8433 GB, free: 51.25 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/1.329, allocations: 83.97 kB / 0.8434 GB, free: 51.17 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007846/1.337, allocations: 8.059 MB / 0.8513 GB, free: 42.83 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.337, allocations: 4.031 kB / 0.8513 GB, free: 42.83 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01078/1.348, allocations: 8.506 MB / 0.8596 GB, free: 34.22 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/1.35, allocations: 0.8784 MB / 0.8605 GB, free: 33.32 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005682/1.35, allocations: 68 kB / 0.8605 GB, free: 33.25 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/1.352, allocations: 179.8 kB / 0.8607 GB, free: 33.07 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004811/1.353, allocations: 253.1 kB / 0.8609 GB, free: 32.83 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.353, allocations: 112 kB / 0.861 GB, free: 32.72 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003461/1.356, allocations: 2.52 MB / 0.8635 GB, free: 30.21 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.11e-07/1.356, allocations: 4 kB / 0.8635 GB, free: 30.21 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.00499/1.361, allocations: 1.557 MB / 0.865 GB, free: 28.66 MB / 0.5138 GB 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.000457/1.362, allocations: 246.3 kB / 0.8653 GB, free: 28.41 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00836/1.37, allocations: 6.554 MB / 0.8717 GB, free: 21.84 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.37, allocations: 0 / 0.8717 GB, free: 21.84 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003684/1.374, allocations: 2.969 MB / 0.8746 GB, free: 18.85 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004178/1.378, allocations: 0.963 MB / 0.8755 GB, free: 17.93 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/1.401, allocations: 15.64 MB / 0.8908 GB, free: 2.215 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006231/1.407, allocations: 5.974 MB / 0.8966 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005213/1.413, allocations: 1.869 MB / 0.8984 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/1.414, allocations: 343.4 kB / 0.8988 GB, free: 9.988 MB / 0.5294 GB Notification: Performance of SimCode: time 2.074e-06/1.414, allocations: 0 / 0.8988 GB, free: 9.988 MB / 0.5294 GB Notification: Performance of Templates: time 0.3436/1.757, allocations: 60.44 MB / 0.9578 GB, free: 176.6 MB / 0.5607 GB 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)