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.00105/0.00105, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.28/1.28, allocations: 222.9 MB / 239 MB, free: 4.699 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.001153/0.001153, allocations: 192.4 kB / 289.3 MB, free: 2.445 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03268/0.03268, allocations: 8.8 MB / 348.2 MB, free: 4.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001429, allocations: 75.05 kB / 410.6 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08345/0.08489, allocations: 51.56 MB / 462.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02537/0.1103, allocations: 28.21 MB / 490.4 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.1254, allocations: 8.338 MB / 498.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004998/0.1304, allocations: 203.4 kB / 498.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01605/0.1465, allocations: 7.706 MB / 0.4947 GB, free: 2.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008707/0.1552, allocations: 2.529 MB / 0.4972 GB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005238/0.1605, allocations: 1.719 MB / 0.4989 GB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.1719, allocations: 9.946 MB / 0.5086 GB, free: 3.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2155/0.3874, allocations: 24.67 MB / 0.5327 GB, free: 16.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007274/0.3947, allocations: 5.398 MB / 0.5379 GB, free: 15.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009915/0.4047, allocations: 6.112 MB / 0.5439 GB, free: 14.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005452/0.4101, allocations: 1.543 MB / 0.5454 GB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00834/0.4185, allocations: 1.906 MB / 0.5473 GB, free: 14.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006025/0.4246, allocations: 2.993 MB / 0.5502 GB, free: 14.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01248/0.4371, allocations: 5.854 MB / 0.5559 GB, free: 13.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02071/0.4578, allocations: 20.51 MB / 0.5759 GB, free: 3.816 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.4579, allocations: 4 kB / 0.5759 GB, free: 3.812 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4579, allocations: 0 / 0.5759 GB, free: 3.812 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006982/0.4586, allocations: 0 / 0.5759 GB, free: 3.812 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.04158/0.5002, allocations: 11.89 MB / 0.5876 GB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.5003, allocations: 8.031 kB / 0.5876 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03231/0.5326, allocations: 5.605 MB / 0.593 GB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01488/0.5475, allocations: 6.135 MB / 0.599 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008625/0.5484, allocations: 0.7075 MB / 0.5997 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004283/0.5527, allocations: 0.9308 MB / 0.6006 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04937/0.6021, allocations: 15.07 MB / 0.6153 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006635/0.6028, allocations: 23.81 kB / 0.6154 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003991/0.6068, allocations: 393.7 kB / 0.6157 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006327/0.6075, allocations: 0.5156 MB / 0.6162 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03363/0.6411, allocations: 13.73 MB / 0.6297 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1005/0.7416, allocations: 47.84 MB / 0.6764 GB, free: 308 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2077/0.9494, allocations: 28.77 MB / 0.7045 GB, free: 159.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004122/0.9535, allocations: 2.897 MB / 0.7073 GB, free: 159.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002921/0.9538, allocations: 241.3 kB / 0.7075 GB, free: 159.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.9539, allocations: 76.67 kB / 0.7076 GB, free: 159.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 6.473e-06/0.9539, allocations: 0 / 0.7076 GB, free: 159.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02922/0.9831, allocations: 14.7 MB / 0.7219 GB, free: 157.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.648e-05/0.9832, allocations: 89.73 kB / 0.722 GB, free: 157.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005708/0.9889, allocations: 3.765 MB / 0.7257 GB, free: 157.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005528/0.9895, allocations: 85.05 kB / 0.7258 GB, free: 157 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001933/0.9915, allocations: 4.08 MB / 0.7298 GB, free: 154.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/0.9925, allocations: 1.306 MB / 0.7311 GB, free: 153.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001514/0.9941, allocations: 1.169 MB / 0.7322 GB, free: 153.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.134e-05/0.9941, allocations: 305.1 kB / 0.7325 GB, free: 152.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/0.9971, allocations: 2.567 MB / 0.735 GB, free: 151.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004099/1.001, allocations: 5.057 MB / 0.7399 GB, free: 147.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008049/1.009, allocations: 8.249 MB / 0.748 GB, free: 141.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-05/1.009, allocations: 23.44 kB / 0.748 GB, free: 141.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.0132/1.023, allocations: 8.602 MB / 0.7564 GB, free: 138.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.306e-05/1.023, allocations: 46.72 kB / 0.7565 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/1.023, allocations: 80 kB / 0.7565 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002267/1.025, allocations: 0.8583 MB / 0.7574 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004317/1.029, allocations: 1.366 MB / 0.7587 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009987/1.039, allocations: 8.961 MB / 0.7675 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004743/1.044, allocations: 330.3 kB / 0.7678 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/1.045, allocations: 298.7 kB / 0.7681 GB, free: 130.2 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.007548/1.053, allocations: 3.513 MB / 0.7715 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001476/1.054, allocations: 414.4 kB / 0.7719 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/1.065, allocations: 5.85 MB / 0.7776 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/1.065, allocations: 36.66 kB / 0.7776 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.412e-05/1.065, allocations: 12 kB / 0.7776 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.838e-05/1.066, allocations: 19.92 kB / 0.7777 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02639/1.092, allocations: 14.76 MB / 0.7921 GB, free: 106.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/1.092, allocations: 4 kB / 0.7921 GB, free: 106.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/1.095, allocations: 0.6631 MB / 0.7927 GB, free: 105.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001886/1.096, allocations: 0.7181 MB / 0.7934 GB, free: 105 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003203/1.097, allocations: 86.05 kB / 0.7935 GB, free: 105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007896/1.105, allocations: 7.999 MB / 0.8013 GB, free: 96.69 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/1.105, allocations: 10.44 kB / 0.8013 GB, free: 96.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01114/1.116, allocations: 8.471 MB / 0.8096 GB, free: 88.11 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002143/1.118, allocations: 0.8745 MB / 0.8105 GB, free: 87.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001112/1.119, allocations: 68 kB / 0.8105 GB, free: 87.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002427/1.122, allocations: 184.4 kB / 0.8107 GB, free: 86.96 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000555/1.122, allocations: 254.7 kB / 0.8109 GB, free: 86.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002643/1.122, allocations: 108 kB / 0.811 GB, free: 86.61 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004241/1.127, allocations: 2.52 MB / 0.8135 GB, free: 84.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.127, allocations: 4 kB / 0.8135 GB, free: 84.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007525/1.134, allocations: 1.554 MB / 0.815 GB, free: 82.55 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.0006733/1.135, allocations: 260 kB / 0.8153 GB, free: 82.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02384/1.159, allocations: 12.5 MB / 0.8275 GB, free: 69.82 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/1.159, allocations: 0 / 0.8275 GB, free: 69.82 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004719/1.164, allocations: 2.957 MB / 0.8304 GB, free: 66.84 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006065/1.17, allocations: 0.9691 MB / 0.8313 GB, free: 65.92 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03229/1.202, allocations: 19.7 MB / 0.8506 GB, free: 46.16 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01173/1.214, allocations: 5.969 MB / 0.8564 GB, free: 40.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006118/1.22, allocations: 1.869 MB / 0.8582 GB, free: 38.27 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/1.221, allocations: 339.4 kB / 0.8585 GB, free: 37.94 MB / 494.1 MB Notification: Performance of SimCode: time 1.172e-06/1.221, allocations: 0 / 0.8585 GB, free: 37.94 MB / 494.1 MB Notification: Performance of Templates: time 0.3002/1.522, allocations: 63.31 MB / 0.9204 GB, free: 130 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)