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.001478/0.001478, allocations: 115.2 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.334/1.334, 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.00129/0.00129, allocations: 192.4 kB / 290.4 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03566/0.03566, allocations: 8.802 MB / 349.3 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 79.88 kB / 464.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08166/0.08308, allocations: 51.56 MB / 0.5041 GB, free: 9.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.201/0.2841, allocations: 28.72 MB / 0.5321 GB, free: 4.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.2966, allocations: 8.454 MB / 0.5404 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003536/0.3002, allocations: 210.4 kB / 0.5406 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01519/0.3154, allocations: 8.197 MB / 0.5486 GB, free: 3.398 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007916/0.3234, allocations: 2.858 MB / 0.5514 GB, free: 2.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004057/0.3274, allocations: 1.858 MB / 0.5532 GB, free: 2.395 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.3377, allocations: 10 MB / 0.563 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02454/0.3622, allocations: 21.35 MB / 0.5838 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007131/0.3694, allocations: 5.374 MB / 0.5891 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00756/0.377, allocations: 6.042 MB / 0.595 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002239/0.3792, allocations: 1.539 MB / 0.5965 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003746/0.383, allocations: 1.888 MB / 0.5983 GB, free: 448 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002378/0.3854, allocations: 2.986 MB / 0.6012 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007068/0.3925, allocations: 5.855 MB / 0.607 GB, free: 7.641 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01811/0.4106, allocations: 20.63 MB / 0.6271 GB, free: 3.355 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4106, allocations: 0 / 0.6271 GB, free: 3.355 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4106, allocations: 0 / 0.6271 GB, free: 3.355 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003916/0.411, allocations: 3.938 kB / 0.6271 GB, free: 3.352 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.02956/0.4406, allocations: 11.84 MB / 0.6387 GB, free: 7.492 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.4407, allocations: 12.02 kB / 0.6387 GB, free: 7.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03129/0.472, allocations: 5.631 MB / 0.6442 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01408/0.4861, allocations: 6.309 MB / 0.6503 GB, free: 11.54 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006283/0.4867, allocations: 0.7036 MB / 0.651 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002753/0.4895, allocations: 0.9264 MB / 0.6519 GB, free: 9.93 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03183/0.5213, allocations: 15.07 MB / 0.6666 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004046/0.5218, allocations: 15.81 kB / 0.6667 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00223/0.524, allocations: 397.9 kB / 0.667 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005879/0.5246, allocations: 0.5194 MB / 0.6675 GB, free: 9.887 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02618/0.5508, allocations: 13.75 MB / 0.681 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4089/0.9597, allocations: 47.3 MB / 0.7272 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01649/0.9763, allocations: 28.79 MB / 0.7553 GB, free: 107.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004222/0.9805, allocations: 2.896 MB / 0.7581 GB, free: 107.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002758/0.9808, allocations: 236.4 kB / 0.7583 GB, free: 107 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.9809, allocations: 76.41 kB / 0.7584 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.67e-06/0.9809, allocations: 0 / 0.7584 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.02625/1.007, allocations: 14.77 MB / 0.7728 GB, free: 105 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/1.007, allocations: 89.92 kB / 0.7729 GB, free: 104.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004133/1.011, allocations: 3.762 MB / 0.7766 GB, free: 104.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000207/1.012, allocations: 89.11 kB / 0.7767 GB, free: 104.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001437/1.013, allocations: 4.078 MB / 0.7807 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007178/1.014, allocations: 1.307 MB / 0.7819 GB, free: 101.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001417/1.015, allocations: 1.165 MB / 0.7831 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.258e-05/1.015, allocations: 306.1 kB / 0.7834 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002932/1.018, allocations: 2.577 MB / 0.7859 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003625/1.022, allocations: 5.054 MB / 0.7908 GB, free: 96.34 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007078/1.029, allocations: 8.26 MB / 0.7989 GB, free: 90.43 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.882e-05/1.029, allocations: 22.47 kB / 0.7989 GB, free: 90.43 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01089/1.04, allocations: 8.619 MB / 0.8073 GB, free: 86.96 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.639e-05/1.04, allocations: 40.78 kB / 0.8074 GB, free: 86.96 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-05/1.04, allocations: 80.62 kB / 0.8074 GB, free: 86.96 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002136/1.042, allocations: 0.8701 MB / 0.8083 GB, free: 86.69 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003942/1.046, allocations: 1.367 MB / 0.8096 GB, free: 86.34 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009381/1.055, allocations: 9.016 MB / 0.8184 GB, free: 77.81 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003368/1.059, allocations: 331.4 kB / 0.8187 GB, free: 77.48 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003656/1.059, allocations: 304 kB / 0.819 GB, free: 77.19 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.004131/1.063, allocations: 3.517 MB / 0.8225 GB, free: 73.66 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000769/1.064, allocations: 418.9 kB / 0.8229 GB, free: 73.24 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008282/1.072, allocations: 5.861 MB / 0.8286 GB, free: 67.35 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.222e-05/1.072, allocations: 19.92 kB / 0.8286 GB, free: 67.33 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/1.072, allocations: 1.031 kB / 0.8286 GB, free: 67.33 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001855/1.074, allocations: 0.8941 MB / 0.8295 GB, free: 66.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005174/1.075, allocations: 64 kB / 0.8295 GB, free: 66.35 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/1.077, allocations: 175.8 kB / 0.8297 GB, free: 66.18 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003881/1.077, allocations: 262.8 kB / 0.83 GB, free: 65.92 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007731/1.085, allocations: 5.468 MB / 0.8353 GB, free: 60.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007835/1.093, allocations: 7.202 MB / 0.8423 GB, free: 53.25 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002173/1.095, allocations: 2.184 MB / 0.8445 GB, free: 51.05 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002986/1.098, allocations: 2.524 MB / 0.8469 GB, free: 48.55 MB / 0.5138 GB Notification: Performance of Backend: time 3.31e-07/1.098, allocations: 0 / 0.8469 GB, free: 48.55 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007549/1.105, allocations: 4.98 MB / 0.8518 GB, free: 43.61 MB / 0.5138 GB Notification: Performance of SimCode: time 0.01928/1.125, allocations: 15.1 MB / 0.8665 GB, free: 28.48 MB / 0.5138 GB Notification: Performance of Templates: time 0.1086/1.233, allocations: 72.27 MB / 0.9371 GB, free: 4.566 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)