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.00156/0.00156, allocations: 112.9 kB / 15.99 MB, free: 6.348 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.411/1.411, allocations: 222.9 MB / 239.6 MB, free: 4.762 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.001281/0.001281, allocations: 184.4 kB / 289.9 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03414/0.03414, allocations: 8.794 MB / 348.9 MB, free: 4.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 75.52 kB / 411.2 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08893/0.09041, allocations: 51.56 MB / 462.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02676/0.1172, allocations: 28.22 MB / 491 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01552/0.1328, allocations: 8.33 MB / 499.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005499/0.1383, allocations: 203.4 kB / 499.5 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01895/0.1573, allocations: 7.701 MB / 0.4954 GB, free: 2.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009345/0.1666, allocations: 2.531 MB / 0.4978 GB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005509/0.1722, allocations: 1.726 MB / 0.4995 GB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.1847, allocations: 9.936 MB / 0.5092 GB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2144/0.3991, allocations: 24.67 MB / 0.5333 GB, free: 16.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008778/0.408, allocations: 5.403 MB / 0.5386 GB, free: 15.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01212/0.4201, allocations: 6.116 MB / 0.5446 GB, free: 14.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006916/0.4271, allocations: 1.542 MB / 0.5461 GB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008306/0.4354, allocations: 1.9 MB / 0.5479 GB, free: 14.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005911/0.4413, allocations: 2.989 MB / 0.5508 GB, free: 14.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009369/0.4507, allocations: 5.86 MB / 0.5566 GB, free: 13.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.4641, allocations: 18.02 MB / 0.5742 GB, free: 5.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4641, allocations: 0 / 0.5742 GB, free: 5.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4641, allocations: 0 / 0.5742 GB, free: 5.609 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004968/0.4647, allocations: 3.906 kB / 0.5742 GB, free: 5.609 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.03483/0.4995, allocations: 11.88 MB / 0.5858 GB, free: 14.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.4996, allocations: 15.72 kB / 0.5858 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03131/0.5309, allocations: 5.605 MB / 0.5913 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01501/0.5459, allocations: 6.141 MB / 0.5973 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008817/0.5469, allocations: 0.7082 MB / 0.5979 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004426/0.5513, allocations: 0.9324 MB / 0.5989 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04249/0.5938, allocations: 15.07 MB / 0.6136 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005296/0.5944, allocations: 23.8 kB / 0.6136 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003662/0.5981, allocations: 391 kB / 0.614 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006725/0.5988, allocations: 0.5153 MB / 0.6145 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03199/0.6308, allocations: 13.73 MB / 0.6279 GB, free: 3.164 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08816/0.719, allocations: 47.83 MB / 0.6746 GB, free: 2.902 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02317/0.7422, allocations: 28.77 MB / 0.7027 GB, free: 2.414 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1864/0.9287, allocations: 2.892 MB / 0.7055 GB, free: 160.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005115/0.9293, allocations: 238.7 kB / 0.7057 GB, free: 160.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.93e-05/0.9293, allocations: 72.56 kB / 0.7058 GB, free: 160.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 6.512e-06/0.9293, allocations: 0.7812 kB / 0.7058 GB, free: 160.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.03108/0.9604, allocations: 14.7 MB / 0.7202 GB, free: 158.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.9605, allocations: 90.55 kB / 0.7203 GB, free: 158.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006324/0.9668, allocations: 3.766 MB / 0.7239 GB, free: 158.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006575/0.9675, allocations: 83.55 kB / 0.724 GB, free: 158.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002333/0.9698, allocations: 4.074 MB / 0.728 GB, free: 155.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001427/0.9713, allocations: 1.309 MB / 0.7293 GB, free: 155 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001881/0.9732, allocations: 1.167 MB / 0.7304 GB, free: 154.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.475e-05/0.9732, allocations: 305.1 kB / 0.7307 GB, free: 154.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003334/0.9766, allocations: 2.573 MB / 0.7332 GB, free: 154.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004435/0.981, allocations: 5.055 MB / 0.7381 GB, free: 150.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009156/0.9902, allocations: 8.251 MB / 0.7462 GB, free: 144.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.9904, allocations: 23.09 kB / 0.7462 GB, free: 144.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01379/1.004, allocations: 8.605 MB / 0.7546 GB, free: 140.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.026e-05/1.004, allocations: 46.23 kB / 0.7547 GB, free: 140.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001317/1.004, allocations: 82.25 kB / 0.7548 GB, free: 140.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002176/1.007, allocations: 0.8576 MB / 0.7556 GB, free: 140.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004618/1.011, allocations: 1.363 MB / 0.7569 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009641/1.021, allocations: 8.963 MB / 0.7657 GB, free: 133.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00486/1.026, allocations: 327.2 kB / 0.766 GB, free: 133.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001198/1.027, allocations: 307.5 kB / 0.7663 GB, free: 133 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.006975/1.034, allocations: 3.507 MB / 0.7697 GB, free: 130 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/1.035, allocations: 417.4 kB / 0.7701 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008854/1.044, allocations: 5.842 MB / 0.7758 GB, free: 124.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/1.044, allocations: 46.09 kB / 0.7759 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/1.044, allocations: 8 kB / 0.7759 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.142e-05/1.044, allocations: 19.92 kB / 0.7759 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02391/1.068, allocations: 14.77 MB / 0.7903 GB, free: 109.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/1.068, allocations: 4 kB / 0.7903 GB, free: 109.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002517/1.071, allocations: 0.6631 MB / 0.7909 GB, free: 108.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/1.073, allocations: 0.715 MB / 0.7916 GB, free: 108.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002965/1.073, allocations: 83.97 kB / 0.7917 GB, free: 108.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008084/1.081, allocations: 7.999 MB / 0.7995 GB, free: 99.85 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.081, allocations: 11.55 kB / 0.7995 GB, free: 99.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0115/1.093, allocations: 8.471 MB / 0.8078 GB, free: 91.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002831/1.096, allocations: 0.8792 MB / 0.8087 GB, free: 90.37 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009484/1.097, allocations: 72 kB / 0.8087 GB, free: 90.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002187/1.099, allocations: 183.9 kB / 0.8089 GB, free: 90.12 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004924/1.099, allocations: 258.6 kB / 0.8092 GB, free: 89.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/1.099, allocations: 104 kB / 0.8093 GB, free: 89.76 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004039/1.104, allocations: 2.52 MB / 0.8117 GB, free: 87.26 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.104, allocations: 0 / 0.8117 GB, free: 87.26 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007248/1.111, allocations: 1.555 MB / 0.8132 GB, free: 85.71 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.0009244/1.112, allocations: 249.9 kB / 0.8135 GB, free: 85.46 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02482/1.137, allocations: 12.51 MB / 0.8257 GB, free: 72.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.137, allocations: 0.5 kB / 0.8257 GB, free: 72.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004665/1.141, allocations: 2.953 MB / 0.8286 GB, free: 70 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005598/1.147, allocations: 0.9586 MB / 0.8295 GB, free: 69.08 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03022/1.177, allocations: 19.45 MB / 0.8485 GB, free: 49.56 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006441/1.184, allocations: 5.793 MB / 0.8542 GB, free: 43.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/1.185, allocations: 379.4 kB / 0.8545 GB, free: 43.36 MB / 494.1 MB Notification: Performance of SimCode: time 1.413e-06/1.185, allocations: 0 / 0.8545 GB, free: 43.36 MB / 494.1 MB Notification: Performance of Templates: time 0.4593/1.645, allocations: 205.2 MB / 1.055 GB, free: 7.879 MB / 0.4981 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)