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.001531/0.001531, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 239.2 MB, free: 4.621 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.001414/0.001414, allocations: 188.5 kB / 289.5 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03422/0.03422, allocations: 8.792 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 79.67 kB / 411.1 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09167, allocations: 51.57 MB / 462.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.0299/0.1216, allocations: 28.72 MB / 491.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.1391, allocations: 8.454 MB / 499.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006043/0.1452, allocations: 211.4 kB / 0.4883 GB, free: 8.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01809/0.1633, allocations: 8.125 MB / 0.4962 GB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01046/0.1738, allocations: 2.807 MB / 0.499 GB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005914/0.1797, allocations: 1.876 MB / 0.5008 GB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.1923, allocations: 9.908 MB / 0.5105 GB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2445/0.4368, allocations: 21.42 MB / 0.5314 GB, free: 13.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009753/0.4466, allocations: 5.342 MB / 0.5366 GB, free: 13.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01242/0.4591, allocations: 6.069 MB / 0.5425 GB, free: 12.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006636/0.4658, allocations: 1.541 MB / 0.5441 GB, free: 12.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008791/0.4746, allocations: 1.9 MB / 0.5459 GB, free: 12.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006038/0.4807, allocations: 2.988 MB / 0.5488 GB, free: 12.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01273/0.4934, allocations: 5.863 MB / 0.5546 GB, free: 10.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02229/0.5157, allocations: 20.51 MB / 0.5746 GB, free: 1.762 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.5158, allocations: 0 / 0.5746 GB, free: 1.762 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5158, allocations: 3.781 kB / 0.5746 GB, free: 1.762 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006776/0.5165, allocations: 0 / 0.5746 GB, free: 1.762 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.04512/0.5616, allocations: 11.87 MB / 0.5862 GB, free: 10.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.5617, allocations: 11.38 kB / 0.5862 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03194/0.5937, allocations: 5.611 MB / 0.5917 GB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01355/0.6072, allocations: 6.132 MB / 0.5977 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007054/0.608, allocations: 0.7075 MB / 0.5984 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003567/0.6116, allocations: 0.9354 MB / 0.5993 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0422/0.6538, allocations: 15.07 MB / 0.614 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003869/0.6542, allocations: 19.38 kB / 0.614 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003263/0.6575, allocations: 393 kB / 0.6144 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005204/0.658, allocations: 0.5156 MB / 0.6149 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02883/0.6869, allocations: 13.73 MB / 0.6283 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08787/0.7748, allocations: 47.85 MB / 0.675 GB, free: 168 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2257/1.001, allocations: 28.79 MB / 0.7031 GB, free: 159.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004368/1.005, allocations: 2.899 MB / 0.706 GB, free: 159.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003251/1.005, allocations: 236.2 kB / 0.7062 GB, free: 159.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/1.005, allocations: 73.92 kB / 0.7063 GB, free: 159.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.951e-06/1.005, allocations: 3.906 kB / 0.7063 GB, free: 159.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.03223/1.038, allocations: 14.76 MB / 0.7207 GB, free: 157.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.877e-05/1.038, allocations: 94.36 kB / 0.7208 GB, free: 157.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006731/1.044, allocations: 3.757 MB / 0.7244 GB, free: 157.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008019/1.045, allocations: 89.67 kB / 0.7245 GB, free: 157.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002481/1.048, allocations: 4.086 MB / 0.7285 GB, free: 154.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001482/1.049, allocations: 1.301 MB / 0.7298 GB, free: 153.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001764/1.051, allocations: 1.17 MB / 0.7309 GB, free: 153.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.668e-05/1.051, allocations: 305.1 kB / 0.7312 GB, free: 152.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003281/1.054, allocations: 2.573 MB / 0.7337 GB, free: 151.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00465/1.059, allocations: 5.056 MB / 0.7387 GB, free: 147.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009897/1.069, allocations: 8.257 MB / 0.7467 GB, free: 141.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001813/1.069, allocations: 24.31 kB / 0.7467 GB, free: 141.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01538/1.085, allocations: 8.62 MB / 0.7552 GB, free: 138.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.841e-05/1.085, allocations: 42.69 kB / 0.7552 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001226/1.085, allocations: 81.5 kB / 0.7553 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/1.087, allocations: 0.8744 MB / 0.7561 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004483/1.092, allocations: 1.366 MB / 0.7575 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01053/1.102, allocations: 9.032 MB / 0.7663 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005854/1.108, allocations: 321.3 kB / 0.7666 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/1.11, allocations: 307.4 kB / 0.7669 GB, free: 130.1 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.008497/1.118, allocations: 3.515 MB / 0.7703 GB, free: 127.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001475/1.12, allocations: 406.7 kB / 0.7707 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009602/1.129, allocations: 5.881 MB / 0.7765 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/1.129, allocations: 40 kB / 0.7765 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/1.129, allocations: 8 kB / 0.7765 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.329e-05/1.129, allocations: 19.92 kB / 0.7765 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0264/1.156, allocations: 14.79 MB / 0.791 GB, free: 106.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/1.156, allocations: 4 kB / 0.791 GB, free: 106.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002559/1.158, allocations: 0.6631 MB / 0.7916 GB, free: 105.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/1.161, allocations: 0.7339 MB / 0.7923 GB, free: 105 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003621/1.161, allocations: 79.98 kB / 0.7924 GB, free: 104.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008273/1.169, allocations: 8.057 MB / 0.8003 GB, free: 96.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.169, allocations: 7.938 kB / 0.8003 GB, free: 96.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01136/1.181, allocations: 8.49 MB / 0.8086 GB, free: 88 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/1.183, allocations: 0.8786 MB / 0.8094 GB, free: 87.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009467/1.184, allocations: 68 kB / 0.8095 GB, free: 87.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/1.186, allocations: 183.9 kB / 0.8097 GB, free: 86.85 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004551/1.186, allocations: 252.4 kB / 0.8099 GB, free: 86.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/1.187, allocations: 110.6 kB / 0.81 GB, free: 86.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003576/1.19, allocations: 2.524 MB / 0.8125 GB, free: 83.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.19, allocations: 0 / 0.8125 GB, free: 83.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006805/1.197, allocations: 1.558 MB / 0.814 GB, free: 82.43 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.0006785/1.198, allocations: 252.9 kB / 0.8142 GB, free: 82.19 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02393/1.222, allocations: 12.52 MB / 0.8265 GB, free: 69.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.222, allocations: 0 / 0.8265 GB, free: 69.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003915/1.226, allocations: 2.964 MB / 0.8294 GB, free: 66.71 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004469/1.23, allocations: 0.9662 MB / 0.8303 GB, free: 65.79 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02421/1.254, allocations: 15.84 MB / 0.8458 GB, free: 49.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006693/1.261, allocations: 5.962 MB / 0.8516 GB, free: 43.88 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00529/1.266, allocations: 1.866 MB / 0.8534 GB, free: 42 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.268, allocations: 347.4 kB / 0.8537 GB, free: 41.66 MB / 494.1 MB Notification: Performance of SimCode: time 2.645e-06/1.268, allocations: 3.938 kB / 0.8538 GB, free: 41.66 MB / 494.1 MB Notification: Performance of Templates: time 0.2994/1.567, allocations: 63.43 MB / 0.9157 GB, free: 135.1 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)