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.00108/0.00108, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.237/1.237, allocations: 222.9 MB / 238.8 MB, free: 4.773 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.001165/0.001165, allocations: 188.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03157/0.03157, allocations: 8.794 MB / 348.1 MB, free: 4.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 74.17 kB / 410.4 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.0847, allocations: 51.56 MB / 461.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02459/0.1093, allocations: 28.21 MB / 490.2 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01518/0.1246, allocations: 8.373 MB / 498.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005255/0.1298, allocations: 203.4 kB / 498.7 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01556/0.1455, allocations: 7.695 MB / 0.4946 GB, free: 2.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008204/0.1537, allocations: 2.56 MB / 0.4971 GB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004907/0.1586, allocations: 1.739 MB / 0.4988 GB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01106/0.1697, allocations: 9.889 MB / 0.5084 GB, free: 4.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02829/0.198, allocations: 17.81 MB / 0.5258 GB, free: 2.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.185/0.383, allocations: 4.674 MB / 0.5304 GB, free: 18.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008196/0.3913, allocations: 5.804 MB / 0.536 GB, free: 18.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003899/0.3952, allocations: 1.048 MB / 0.5371 GB, free: 18.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006391/0.4016, allocations: 1.396 MB / 0.5384 GB, free: 18.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004874/0.4065, allocations: 2.477 MB / 0.5408 GB, free: 17.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009742/0.4162, allocations: 5.341 MB / 0.5461 GB, free: 16.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01768/0.4339, allocations: 20.17 MB / 0.5658 GB, free: 9.895 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.434, allocations: 0.75 kB / 0.5658 GB, free: 9.895 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.434, allocations: 3.375 kB / 0.5658 GB, free: 9.895 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006148/0.4347, allocations: 1.188 kB / 0.5658 GB, free: 9.895 MB / 366.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.03748/0.4722, allocations: 11.89 MB / 0.5774 GB, free: 2.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.4722, allocations: 7.656 kB / 0.5774 GB, free: 2.527 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02849/0.5007, allocations: 5.612 MB / 0.5829 GB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01738/0.5181, allocations: 6.134 MB / 0.5888 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00077/0.5189, allocations: 0.712 MB / 0.5895 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005745/0.5247, allocations: 0.9246 MB / 0.5904 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04723/0.5719, allocations: 15.08 MB / 0.6052 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007782/0.5728, allocations: 19.89 kB / 0.6052 GB, free: 9.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005659/0.5785, allocations: 393.8 kB / 0.6056 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006966/0.5792, allocations: 0.5117 MB / 0.6061 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03308/0.6123, allocations: 13.73 MB / 0.6195 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09527/0.7076, allocations: 47.83 MB / 0.6662 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02553/0.7332, allocations: 28.76 MB / 0.6943 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005579/0.7388, allocations: 2.902 MB / 0.6971 GB, free: 7.676 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004938/0.7393, allocations: 238.8 kB / 0.6973 GB, free: 7.414 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.351e-05/0.7394, allocations: 69.48 kB / 0.6974 GB, free: 7.336 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.35e-06/0.7394, allocations: 0 / 0.6974 GB, free: 7.336 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.1977/0.9371, allocations: 14.7 MB / 0.7118 GB, free: 162.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.9372, allocations: 95.45 kB / 0.7118 GB, free: 162.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005631/0.9428, allocations: 3.761 MB / 0.7155 GB, free: 162.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006084/0.9435, allocations: 87.98 kB / 0.7156 GB, free: 162.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002461/0.9459, allocations: 4.075 MB / 0.7196 GB, free: 159.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001106/0.9471, allocations: 1.31 MB / 0.7209 GB, free: 159.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001807/0.9489, allocations: 1.165 MB / 0.722 GB, free: 159 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.596e-05/0.9489, allocations: 304.4 kB / 0.7223 GB, free: 158.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003879/0.9528, allocations: 2.57 MB / 0.7248 GB, free: 158.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004524/0.9574, allocations: 5.051 MB / 0.7297 GB, free: 155.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007754/0.9651, allocations: 8.256 MB / 0.7378 GB, free: 149.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.187e-05/0.9652, allocations: 23.31 kB / 0.7378 GB, free: 149.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01117/0.9764, allocations: 8.606 MB / 0.7462 GB, free: 146 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.117e-05/0.9765, allocations: 41.84 kB / 0.7463 GB, free: 146 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.274e-05/0.9766, allocations: 84.34 kB / 0.7463 GB, free: 146 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002021/0.9786, allocations: 0.8576 MB / 0.7472 GB, free: 145.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003901/0.9825, allocations: 1.357 MB / 0.7485 GB, free: 145.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00874/0.9912, allocations: 8.361 MB / 0.7567 GB, free: 140.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004345/0.9956, allocations: 333.2 kB / 0.757 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000729/0.9964, allocations: 303.7 kB / 0.7573 GB, free: 139.8 MB / 494.1 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.004974/1.001, allocations: 3.507 MB / 0.7607 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009129/1.002, allocations: 414.4 kB / 0.7611 GB, free: 136.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008154/1.01, allocations: 5.847 MB / 0.7668 GB, free: 131.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/1.01, allocations: 40 kB / 0.7668 GB, free: 131.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/1.01, allocations: 8 kB / 0.7669 GB, free: 131.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.08e-05/1.011, allocations: 19.92 kB / 0.7669 GB, free: 131.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01941/1.03, allocations: 14.75 MB / 0.7813 GB, free: 117.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/1.03, allocations: 4 kB / 0.7813 GB, free: 117.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/1.032, allocations: 0.6631 MB / 0.7819 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/1.034, allocations: 0.7182 MB / 0.7826 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001932/1.034, allocations: 79.98 kB / 0.7827 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006909/1.041, allocations: 7.407 MB / 0.7899 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/1.041, allocations: 160 / 0.7899 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009756/1.051, allocations: 8.487 MB / 0.7982 GB, free: 100.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/1.053, allocations: 0.8784 MB / 0.7991 GB, free: 99.31 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004914/1.053, allocations: 68 kB / 0.7992 GB, free: 99.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/1.055, allocations: 179.8 kB / 0.7993 GB, free: 99.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004412/1.055, allocations: 242.8 kB / 0.7996 GB, free: 98.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001939/1.055, allocations: 119.8 kB / 0.7997 GB, free: 98.71 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003043/1.058, allocations: 2.52 MB / 0.8021 GB, free: 96.21 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.058, allocations: 4 kB / 0.8021 GB, free: 96.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004532/1.063, allocations: 1.551 MB / 0.8036 GB, free: 94.65 MB / 494.1 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.0004583/1.063, allocations: 248 kB / 0.8039 GB, free: 94.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008388/1.072, allocations: 6.533 MB / 0.8103 GB, free: 87.86 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/1.072, allocations: 0 / 0.8103 GB, free: 87.86 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003785/1.076, allocations: 2.95 MB / 0.8131 GB, free: 84.88 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004327/1.08, allocations: 0.9164 MB / 0.814 GB, free: 84 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02425/1.104, allocations: 19.7 MB / 0.8333 GB, free: 64.24 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004501/1.109, allocations: 5.974 MB / 0.8391 GB, free: 58.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004428/1.113, allocations: 1.862 MB / 0.8409 GB, free: 56.36 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009136/1.114, allocations: 347.4 kB / 0.8413 GB, free: 56.02 MB / 494.1 MB Notification: Performance of SimCode: time 5.41e-07/1.114, allocations: 0 / 0.8413 GB, free: 56.02 MB / 494.1 MB Notification: Performance of Templates: time 0.2654/1.38, allocations: 61.06 MB / 0.9009 GB, free: 136.5 MB / 494.1 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)