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.001076/0.001076, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.381/1.381, allocations: 222.9 MB / 240 MB, free: 4.539 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.001261/0.001261, allocations: 176.5 kB / 290.3 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03852/0.03852, allocations: 8.802 MB / 349.3 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 85.28 kB / 412.5 MB, free: 41.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/0.0904, allocations: 51.56 MB / 464.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.03016/0.1206, allocations: 28.72 MB / 492.8 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.1388, allocations: 8.446 MB / 0.4895 GB, free: 8.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006145/0.145, allocations: 215.4 kB / 0.4897 GB, free: 8.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0172/0.1622, allocations: 8.133 MB / 0.4976 GB, free: 15.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009133/0.1714, allocations: 2.812 MB / 0.5004 GB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004808/0.1762, allocations: 1.863 MB / 0.5022 GB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0116/0.1878, allocations: 9.986 MB / 0.512 GB, free: 1.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.225/0.4129, allocations: 21.35 MB / 0.5328 GB, free: 14.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007626/0.4205, allocations: 5.355 MB / 0.538 GB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01153/0.4321, allocations: 6.045 MB / 0.5439 GB, free: 12.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006242/0.4384, allocations: 1.544 MB / 0.5454 GB, free: 12.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008599/0.447, allocations: 1.887 MB / 0.5473 GB, free: 12.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006104/0.4531, allocations: 2.992 MB / 0.5502 GB, free: 12.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01094/0.4641, allocations: 5.855 MB / 0.5559 GB, free: 11.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01934/0.4835, allocations: 20.62 MB / 0.5761 GB, free: 2.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4835, allocations: 0 / 0.5761 GB, free: 2.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4835, allocations: 3.312 kB / 0.5761 GB, free: 2.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005734/0.4841, allocations: 0 / 0.5761 GB, free: 2.215 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.03581/0.5199, allocations: 11.85 MB / 0.5876 GB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.52, allocations: 7.219 kB / 0.5877 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03004/0.55, allocations: 5.634 MB / 0.5932 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01518/0.5652, allocations: 6.308 MB / 0.5993 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009347/0.5662, allocations: 0.7126 MB / 0.6 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004258/0.5705, allocations: 0.9282 MB / 0.6009 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03726/0.6078, allocations: 15.07 MB / 0.6156 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003846/0.6082, allocations: 11.91 kB / 0.6156 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002517/0.6107, allocations: 394.9 kB / 0.616 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005533/0.6113, allocations: 0.5167 MB / 0.6165 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03148/0.6428, allocations: 13.74 MB / 0.63 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08416/0.7269, allocations: 47.3 MB / 0.6761 GB, free: 56 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2104/0.9374, allocations: 28.78 MB / 0.7042 GB, free: 159.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004825/0.9422, allocations: 2.905 MB / 0.7071 GB, free: 159.6 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004772/0.9427, allocations: 239.3 kB / 0.7073 GB, free: 159.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.263e-05/0.9428, allocations: 69.67 kB / 0.7074 GB, free: 159.4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 9.828e-06/0.9429, allocations: 0 / 0.7074 GB, free: 159.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.03477/0.9776, allocations: 14.76 MB / 0.7218 GB, free: 157.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.9777, allocations: 89.55 kB / 0.7219 GB, free: 157.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008392/0.9861, allocations: 3.765 MB / 0.7256 GB, free: 157.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005516/0.9867, allocations: 88.3 kB / 0.7256 GB, free: 157.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002515/0.9892, allocations: 4.084 MB / 0.7296 GB, free: 154.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001413/0.9907, allocations: 1.305 MB / 0.7309 GB, free: 153.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0024/0.9931, allocations: 1.163 MB / 0.732 GB, free: 152.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.79e-05/0.9931, allocations: 309 kB / 0.7323 GB, free: 152.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003463/0.9966, allocations: 2.568 MB / 0.7348 GB, free: 151.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004623/1.001, allocations: 5.061 MB / 0.7398 GB, free: 147.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008198/1.009, allocations: 8.258 MB / 0.7478 GB, free: 141.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-05/1.01, allocations: 22.84 kB / 0.7479 GB, free: 141.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01202/1.022, allocations: 8.62 MB / 0.7563 GB, free: 137.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.296e-05/1.022, allocations: 40.72 kB / 0.7563 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/1.022, allocations: 81.72 kB / 0.7564 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002175/1.024, allocations: 0.872 MB / 0.7573 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004274/1.028, allocations: 1.359 MB / 0.7586 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009552/1.038, allocations: 9.028 MB / 0.7674 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005543/1.043, allocations: 330.2 kB / 0.7677 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/1.045, allocations: 299.6 kB / 0.768 GB, free: 129.9 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.007427/1.052, allocations: 3.515 MB / 0.7714 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/1.054, allocations: 414.5 kB / 0.7718 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00964/1.064, allocations: 5.86 MB / 0.7775 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/1.064, allocations: 40.66 kB / 0.7776 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/1.064, allocations: 8 kB / 0.7776 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.618e-05/1.064, allocations: 20.42 kB / 0.7776 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02487/1.089, allocations: 14.48 MB / 0.7917 GB, free: 106.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/1.089, allocations: 4 kB / 0.7918 GB, free: 106.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002398/1.091, allocations: 0.6631 MB / 0.7924 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001837/1.093, allocations: 0.7269 MB / 0.7931 GB, free: 105.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003118/1.093, allocations: 83.98 kB / 0.7932 GB, free: 105.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007832/1.101, allocations: 8.049 MB / 0.8011 GB, free: 97.04 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/1.101, allocations: 7.938 kB / 0.8011 GB, free: 97.03 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/1.111, allocations: 8.495 MB / 0.8094 GB, free: 88.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002384/1.114, allocations: 0.8786 MB / 0.8102 GB, free: 87.53 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008687/1.115, allocations: 72.78 kB / 0.8103 GB, free: 87.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002146/1.117, allocations: 180.8 kB / 0.8105 GB, free: 87.28 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005081/1.117, allocations: 260.3 kB / 0.8107 GB, free: 87.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/1.118, allocations: 108 kB / 0.8108 GB, free: 86.92 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003986/1.122, allocations: 2.524 MB / 0.8133 GB, free: 84.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.122, allocations: 0 / 0.8133 GB, free: 84.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005565/1.127, allocations: 1.559 MB / 0.8148 GB, free: 82.86 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.0005366/1.128, allocations: 245.3 kB / 0.815 GB, free: 82.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008375/1.136, allocations: 6.566 MB / 0.8214 GB, free: 76.04 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/1.136, allocations: 3.938 kB / 0.8214 GB, free: 76.04 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003492/1.14, allocations: 2.962 MB / 0.8243 GB, free: 73.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004103/1.144, allocations: 0.9707 MB / 0.8253 GB, free: 72.12 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02343/1.167, allocations: 15.64 MB / 0.8406 GB, free: 56.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005884/1.173, allocations: 5.962 MB / 0.8464 GB, free: 50.42 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004357/1.178, allocations: 1.867 MB / 0.8482 GB, free: 48.58 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001114/1.179, allocations: 347.4 kB / 0.8485 GB, free: 48.24 MB / 494.1 MB Notification: Performance of SimCode: time 7.82e-07/1.179, allocations: 0 / 0.8485 GB, free: 48.24 MB / 494.1 MB Notification: Performance of Templates: time 0.2602/1.439, allocations: 57.98 MB / 0.9052 GB, free: 141 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)