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.001084/0.001084, allocations: 109.3 kB / 16.42 MB, free: 6.449 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.304/1.304, allocations: 222.9 MB / 240.1 MB, free: 4.555 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.001339/0.001339, allocations: 200.4 kB / 290.4 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03642/0.03642, allocations: 8.798 MB / 349.3 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 80.2 kB / 464.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.07921, allocations: 51.56 MB / 0.5041 GB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.1972/0.2765, allocations: 28.72 MB / 0.5321 GB, free: 4.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.289, allocations: 8.452 MB / 0.5404 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002995/0.292, allocations: 218.1 kB / 0.5406 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0151/0.3071, allocations: 8.126 MB / 0.5485 GB, free: 3.406 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00691/0.314, allocations: 2.803 MB / 0.5513 GB, free: 2.594 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003947/0.318, allocations: 1.857 MB / 0.5531 GB, free: 2.406 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.3288, allocations: 9.998 MB / 0.5628 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02542/0.3542, allocations: 21.35 MB / 0.5837 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006885/0.3611, allocations: 5.377 MB / 0.5889 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007412/0.3686, allocations: 6.039 MB / 0.5948 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00203/0.3706, allocations: 1.543 MB / 0.5963 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003326/0.3739, allocations: 1.886 MB / 0.5982 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002256/0.3762, allocations: 2.988 MB / 0.6011 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00567/0.3819, allocations: 5.856 MB / 0.6068 GB, free: 7.691 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0188/0.4007, allocations: 20.64 MB / 0.627 GB, free: 3.402 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.4007, allocations: 0 / 0.627 GB, free: 3.402 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4007, allocations: 0 / 0.627 GB, free: 3.402 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003184/0.4011, allocations: 0 / 0.627 GB, free: 3.402 MB / 430.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.02812/0.4292, allocations: 11.84 MB / 0.6385 GB, free: 7.543 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.4292, allocations: 8.031 kB / 0.6385 GB, free: 7.535 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03101/0.4603, allocations: 5.629 MB / 0.644 GB, free: 1.953 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0106/0.4709, allocations: 6.314 MB / 0.6502 GB, free: 11.6 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004782/0.4714, allocations: 0.6988 MB / 0.6509 GB, free: 10.91 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001615/0.473, allocations: 0.93 MB / 0.6518 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02696/0.5, allocations: 15.07 MB / 0.6665 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001931/0.5002, allocations: 31.67 kB / 0.6665 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00109/0.5013, allocations: 384.1 kB / 0.6669 GB, free: 10.46 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004866/0.5018, allocations: 0.5195 MB / 0.6674 GB, free: 9.941 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02361/0.5254, allocations: 13.74 MB / 0.6808 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3939/0.9193, allocations: 47.31 MB / 0.727 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01628/0.9356, allocations: 28.78 MB / 0.7551 GB, free: 107.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004143/0.9398, allocations: 2.898 MB / 0.758 GB, free: 107.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002747/0.9401, allocations: 240.8 kB / 0.7582 GB, free: 107 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.9401, allocations: 70.25 kB / 0.7583 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.641e-06/0.9401, allocations: 0 / 0.7583 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.02608/0.9662, allocations: 14.76 MB / 0.7727 GB, free: 105 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.9663, allocations: 100.8 kB / 0.7728 GB, free: 104.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003999/0.9703, allocations: 3.757 MB / 0.7765 GB, free: 104.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.9705, allocations: 85.11 kB / 0.7765 GB, free: 104.6 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.9719, allocations: 4.082 MB / 0.7805 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006592/0.9725, allocations: 1.311 MB / 0.7818 GB, free: 101.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001429/0.974, allocations: 1.165 MB / 0.7829 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.142e-05/0.974, allocations: 301.1 kB / 0.7832 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003059/0.9771, allocations: 2.576 MB / 0.7857 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003681/0.9808, allocations: 5.05 MB / 0.7907 GB, free: 96.35 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00705/0.9878, allocations: 8.26 MB / 0.7987 GB, free: 90.45 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-05/0.9879, allocations: 24.81 kB / 0.7988 GB, free: 90.45 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01079/0.9987, allocations: 8.619 MB / 0.8072 GB, free: 86.98 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.608e-05/0.9987, allocations: 41.47 kB / 0.8072 GB, free: 86.98 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.611e-05/0.9988, allocations: 86.81 kB / 0.8073 GB, free: 86.98 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/1.001, allocations: 0.8655 MB / 0.8081 GB, free: 86.66 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/1.005, allocations: 1.369 MB / 0.8095 GB, free: 86.31 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009315/1.014, allocations: 9.021 MB / 0.8183 GB, free: 77.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/1.018, allocations: 327.4 kB / 0.8186 GB, free: 77.54 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000347/1.018, allocations: 300 kB / 0.8189 GB, free: 77.24 MB / 0.5138 GB 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.003937/1.022, allocations: 3.525 MB / 0.8223 GB, free: 73.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000634/1.023, allocations: 418.7 kB / 0.8227 GB, free: 73.29 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008233/1.031, allocations: 5.861 MB / 0.8285 GB, free: 67.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.07e-05/1.031, allocations: 19.92 kB / 0.8285 GB, free: 67.38 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/1.031, allocations: 0 / 0.8285 GB, free: 67.38 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/1.032, allocations: 0.8862 MB / 0.8293 GB, free: 66.47 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004905/1.032, allocations: 64 kB / 0.8294 GB, free: 66.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/1.034, allocations: 179.8 kB / 0.8296 GB, free: 66.23 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/1.035, allocations: 266.8 kB / 0.8298 GB, free: 65.97 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007911/1.043, allocations: 5.473 MB / 0.8352 GB, free: 60.55 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007753/1.05, allocations: 7.194 MB / 0.8422 GB, free: 53.3 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002176/1.052, allocations: 2.188 MB / 0.8443 GB, free: 51.11 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002812/1.055, allocations: 2.52 MB / 0.8468 GB, free: 48.6 MB / 0.5138 GB Notification: Performance of Backend: time 2.61e-07/1.055, allocations: 4 kB / 0.8468 GB, free: 48.6 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007056/1.062, allocations: 4.979 MB / 0.8517 GB, free: 43.66 MB / 0.5138 GB Notification: Performance of SimCode: time 0.01841/1.081, allocations: 15.08 MB / 0.8664 GB, free: 28.55 MB / 0.5138 GB Notification: Performance of Templates: time 0.1056/1.186, allocations: 72.27 MB / 0.937 GB, free: 4.629 MB / 0.5607 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)